Commit 686d6f40 authored by Howard Chu's avatar Howard Chu Committed by Martin Storsjö

ffserver: Avoid busylooping while reading non-blocking input

Patch by Howard Chu, hyc at highlandsun dot com

Originally committed as revision 23210 to svn://svn.ffmpeg.org/ffmpeg/trunk
parent 38d4a217
......@@ -2629,6 +2629,7 @@ static int http_receive_data(HTTPContext *c)
ff_neterrno() != FF_NETERROR(EINTR))
/* error : close connection */
goto fail;
return 0;
} else if (len == 0) {
/* end of connection : close it */
goto fail;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment