From 686d6f40223b528a669b9a346d451c05354cdc5a Mon Sep 17 00:00:00 2001 From: Howard Chu Date: Fri, 21 May 2010 07:59:12 +0000 Subject: [PATCH] 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 --- ffserver.c | 1 + 1 file changed, 1 insertion(+) diff --git a/ffserver.c b/ffserver.c index 1bb1141723..3cdcd8847c 100644 --- a/ffserver.c +++ b/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;