Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
http2: Make HTTP Upgrade work
This commit just add implicitly opened stream 1 to streams hash.
  • Loading branch information
tatsuhiro-t authored and bagder committed May 22, 2015
1 parent 995c600 commit 640f283
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions lib/http2.c
Expand Up @@ -1268,6 +1268,13 @@ CURLcode Curl_http2_switched(struct connectdata *conn,
nghttp2_strerror(rv), rv);
return CURLE_HTTP2;
}

/* put the SessionHandle in the hash with the stream->stream_id as key */
if(!Curl_hash_add(&httpc->streamsh, &stream->stream_id,
sizeof(stream->stream_id), conn->data)) {
failf(conn->data, "Couldn't add stream to hash!");
return CURLE_OUT_OF_MEMORY;
}
}
else {
/* stream ID is unknown at this point */
Expand Down

0 comments on commit 640f283

Please sign in to comment.