]> git.tue.mpg.de Git - paraslash.git/commit
dccp sender: Keep polling until an entry becomes free (Gerrit Renker).
authorAndre Noll <maan@systemlinux.org>
Mon, 6 Aug 2007 14:09:28 +0000 (16:09 +0200)
committerAndre Noll <maan@systemlinux.org>
Mon, 6 Aug 2007 14:09:28 +0000 (16:09 +0200)
commit7f2f826603c955d35d50d6ab2a6ed48a3bc24ab8
tree5ff78675c28aef36e4f30b9a18dab5d3f06c857c
parente373f7da2c890a1af8f46d444057609b15f3d248
dccp sender: Keep polling until an entry becomes free (Gerrit Renker).

If write() on the dccp fd fails with EAGAIN, the current code retries
100 times and then gives up, returning -E_DCCP_WRITE which causes a
shutdown of the dccp connection.

CCID3 has a sending wait queue which fills up and is emptied
asynchronously. The EAGAIN case means that there is currently no space
in the wait queue, but this can change at any moment and is thus not
an error condition. So keep polling until an entry becomes free.
NEWS
dccp_send.c