summaryrefslogtreecommitdiff
path: root/lib/http.h
diff options
context:
space:
mode:
authorAnders Bakken <agbakken@gmail.com>2015-08-10 17:26:36 -0700
committerDaniel Stenberg <daniel@haxx.se>2015-08-11 08:16:33 +0200
commit5778e6f526e2399ca7d01e6599381ab83d6b3021 (patch)
tree3437a1dcc359aa345ddca72c11da36796c92dded /lib/http.h
parentc8a656d3c774fa7556a298e707484b9b62274765 (diff)
downloadcurl-5778e6f526e2399ca7d01e6599381ab83d6b3021.tar.gz
http2: discard frames with no SessionHandle
Return 0 instead of NGHTTP2_ERR_CALLBACK_FAILURE if we can't locate the SessionHandle. Apparently mod_h2 will sometimes send a frame for a stream_id we're finished with. Use nghttp2_session_get_stream_user_data and nghttp2_session_set_stream_user_data to identify SessionHandles instead of a hash. Closes #372
Diffstat (limited to 'lib/http.h')
-rw-r--r--lib/http.h1
1 files changed, 0 insertions, 1 deletions
diff --git a/lib/http.h b/lib/http.h
index 63ea4ace4..fe4f39bc6 100644
--- a/lib/http.h
+++ b/lib/http.h
@@ -215,7 +215,6 @@ struct http_conn {
nghttp2_session_mem_recv */
/* this is a hash of all individual streams (SessionHandle structs) */
- struct curl_hash streamsh;
struct h2settings settings;
#else
int unused; /* prevent a compiler warning */