Make url_read_complete handle EAGAIN more intelligently.
authorReimar Döffinger <Reimar.Doeffinger@gmx.de>
Sun, 24 Jan 2010 18:09:46 +0000 (18:09 +0000)
committerReimar Döffinger <Reimar.Doeffinger@gmx.de>
Sun, 24 Jan 2010 18:09:46 +0000 (18:09 +0000)
commitf1d2b5728caa39172898043e05e2ade6f224056f
tree8f19366644093c3b535391e4bd321aae69643763
parent0b882b4009c9fbe24020c2fe83b21ee43d0784ea
Make url_read_complete handle EAGAIN more intelligently.
Only retry 2 - 5 times in quick succession and afterwards sleep a bit
to avoid creating high CPU load without any progress.

Originally committed as revision 21427 to svn://svn.ffmpeg.org/ffmpeg/trunk
libavformat/avio.c