aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAlex Beregszaszi <alex@rtfs.hu>2007-02-24 02:16:12 +0000
committerAlex Beregszaszi <alex@rtfs.hu>2007-02-24 02:16:12 +0000
commit638831aacc683da40bb0e126e937047242463b72 (patch)
treeacd4fbe4ee1cc3e370e38b0395dfda95c756376c
parent137f7a4e40e03a877085b57ad73017c92c765b77 (diff)
downloadffmpeg-638831aacc683da40bb0e126e937047242463b72.tar.gz
disconnect client if trailer is sent
Originally committed as revision 8109 to svn://svn.ffmpeg.org/ffmpeg/trunk
-rw-r--r--ffserver.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/ffserver.c b/ffserver.c
index ba87f3598b..7b64cc7a58 100644
--- a/ffserver.c
+++ b/ffserver.c
@@ -870,6 +870,9 @@ static int handle_connection(HTTPContext *c)
}
if (http_send_data(c) < 0)
return -1;
+ /* close connection if trailer sent */
+ if (c->state == HTTPSTATE_SEND_DATA_TRAILER)
+ return -1;
break;
case HTTPSTATE_RECEIVE_DATA:
/* no need to read if no events */