[Ffmpeg-cvslog] r8109 - trunk/ffserver.c

alex subversion
Sat Feb 24 03:16:12 CET 2007


Author: alex
Date: Sat Feb 24 03:16:12 2007
New Revision: 8109

Modified:
   trunk/ffserver.c

Log:
disconnect client if trailer is sent

Modified: trunk/ffserver.c
==============================================================================
--- trunk/ffserver.c	(original)
+++ trunk/ffserver.c	Sat Feb 24 03:16:12 2007
@@ -870,6 +870,9 @@
         }
         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 */




More information about the ffmpeg-cvslog mailing list