Commit 1a003292 authored by bcoudurier's avatar bcoudurier

wake up connections to stop waiting when feed is being closed

git-svn-id: file:///var/local/repositories/ffmpeg/trunk@13547 9553f0bf-9b14-0410-a0b8-cfaf0461ba5b
parent 612da381
......@@ -2477,6 +2477,12 @@ static int http_receive_data(HTTPContext *c)
fail:
c->stream->feed_opened = 0;
close(c->feed_fd);
/* wake up any waiting connections to stop waiting for feed */
for(c1 = first_http_ctx; c1 != NULL; c1 = c1->next) {
if (c1->state == HTTPSTATE_WAIT_FEED &&
c1->stream->feed == c->stream->feed)
c1->state = HTTPSTATE_SEND_DATA_TRAILER;
}
return -1;
}
......
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