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
oldabi
Howard Chu 15 years ago committed by Martin Storsjö
parent 38d4a21778
commit 686d6f4022
  1. 1
      ffserver.c

@ -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;

Loading…
Cancel
Save