http2: move the mem+len pair to the stream struct

This commit is contained in:
Daniel Stenberg 2015-04-29 17:00:53 +02:00
parent 84c6b6561f
commit 7bbac214f5
5 changed files with 44 additions and 23 deletions

View file

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