http2: force "drainage" of streams

... which is necessary since the socket won't be readable but there is
data waiting in the buffer.
This commit is contained in:
Daniel Stenberg 2015-04-30 08:20:49 +02:00
parent 7bbac214f5
commit 01e1bdb10c
7 changed files with 123 additions and 57 deletions

View file

@ -174,6 +174,7 @@ CURLcode Curl_http_setup_conn(struct connectdata *conn)
/* where to store incoming data for this stream and how big the buffer is */
http->mem = conn->data->state.buffer;
http->len = BUFSIZE;
http->memlen = 0;
return CURLE_OK;
}