]> granicus.if.org Git - curl/commit
http2: discard frames with no SessionHandle
authorAnders Bakken <agbakken@gmail.com>
Tue, 11 Aug 2015 00:26:36 +0000 (17:26 -0700)
committerDaniel Stenberg <daniel@haxx.se>
Tue, 11 Aug 2015 06:16:33 +0000 (08:16 +0200)
commit5778e6f526e2399ca7d01e6599381ab83d6b3021
tree3437a1dcc359aa345ddca72c11da36796c92dded
parentc8a656d3c774fa7556a298e707484b9b62274765
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
lib/http.c
lib/http.h
lib/http2.c