disconnect client if trailer is sent
Originally committed as revision 8109 to svn://svn.ffmpeg.org/ffmpeg/trunk
This commit is contained in:
parent
137f7a4e40
commit
638831aacc
@ -870,6 +870,9 @@ static int handle_connection(HTTPContext *c)
|
|||||||
}
|
}
|
||||||
if (http_send_data(c) < 0)
|
if (http_send_data(c) < 0)
|
||||||
return -1;
|
return -1;
|
||||||
|
/* close connection if trailer sent */
|
||||||
|
if (c->state == HTTPSTATE_SEND_DATA_TRAILER)
|
||||||
|
return -1;
|
||||||
break;
|
break;
|
||||||
case HTTPSTATE_RECEIVE_DATA:
|
case HTTPSTATE_RECEIVE_DATA:
|
||||||
/* no need to read if no events */
|
/* no need to read if no events */
|
||||||
|
Loading…
x
Reference in New Issue
Block a user