From 7957d2eb927da90d817c7d1680b5486e00fec711 Mon Sep 17 00:00:00 2001 From: Daniel Stenberg Date: Tue, 28 Apr 2015 13:10:04 +0200 Subject: http: a stream hash for h2 multiplexing --- lib/http2.c | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'lib/http2.c') diff --git a/lib/http2.c b/lib/http2.c index 7a2f03207..9e9d86a9b 100644 --- a/lib/http2.c +++ b/lib/http2.c @@ -623,6 +623,11 @@ CURLcode Curl_http2_init(struct connectdata *conn) failf(conn->data, "Couldn't initialize nghttp2!"); return CURLE_OUT_OF_MEMORY; /* most likely at least */ } + + rc = Curl_hash_init(&conn->proto.httpc.streamsh, 7, Curl_hash_str, + Curl_str_key_compare, NULL); + if(rc) + return CURLE_OUT_OF_MEMORY; /* most likely at least */ } return CURLE_OK; } -- cgit v1.2.3