aboutsummaryrefslogtreecommitdiff
path: root/lib/http2.c
diff options
context:
space:
mode:
authorDaniel Stenberg <daniel@haxx.se>2015-04-28 13:10:04 +0200
committerDaniel Stenberg <daniel@haxx.se>2015-05-18 08:57:17 +0200
commit7957d2eb927da90d817c7d1680b5486e00fec711 (patch)
tree918d2bd822a85456a69808d1797f15f5441c379b /lib/http2.c
parent47caff7bdf8b2a47e6d7110eab0192981390ea21 (diff)
http: a stream hash for h2 multiplexing
Diffstat (limited to 'lib/http2.c')
-rw-r--r--lib/http2.c5
1 files changed, 5 insertions, 0 deletions
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;
}