mirror of
https://github.com/curl/curl.git
synced 2026-08-24 14:03:35 +03:00
http: a stream hash for h2 multiplexing
This commit is contained in:
parent
47caff7bdf
commit
7957d2eb92
2 changed files with 8 additions and 0 deletions
|
|
@ -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;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue