[vlc-devel] [PATCH] src/network: try to write data again if EAGAIN is returned
typx at dinauz.org
Fri Dec 13 16:22:30 CET 2013
Le vendredi 13 décembre 2013 à 03:26:16, David Fuhrmann a écrit :
> AFAIK poll returns if some data can be sent. But what if you want to send more data than the write buffer has place for? Is it guaranteed that then write always returns the number of bytes written, but never EAGAIN?
Well, it may be stupid but I'm kinda afraid that if poll returns
then write set errno to EAGAIN, you may end up in an busyloop where
poll always returns immediately but you cannot write for some reason.
For me write should actually write as much as it can and return how much
Denis Charmet - TypX
Le mauvais esprit est un art de vivre
More information about the vlc-devel