Commit f0abb948 authored by alex's avatar alex

disconnect client if trailer is sent

git-svn-id: file:///var/local/repositories/ffmpeg/trunk@8109 9553f0bf-9b14-0410-a0b8-cfaf0461ba5b
parent 05573fb6
......@@ -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 */
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment