libmicrohttpd

HTTP/1.x server C library (MHD 1.x, stable)
Log | Files | Refs | Submodules | README | LICENSE

commit 78948196e5c86f353d1b0de3179ee3fcad21016c
parent 445f5b9ece4be4e2811cf72efc26a5f8a18110b6
Author: Andrey Uzunov <andrey.uzunov@gmail.com>
Date:   Thu, 10 Oct 2013 15:01:37 +0000

mhd2spdy: dont die on frame for unknown stream

Diffstat:
Msrc/examples/mhd2spdy_spdy.c | 6+++++-
1 file changed, 5 insertions(+), 1 deletion(-)

diff --git a/src/examples/mhd2spdy_spdy.c b/src/examples/mhd2spdy_spdy.c @@ -348,7 +348,11 @@ spdy_cb_on_ctrl_recv(spdylay_session *session, proxy = spdylay_session_get_stream_user_data(session, stream_id); if(NULL == proxy) - DIE("no proxy obj"); + { + PRINT_INFO2("received frame type %i for unkonwn stream id %i", type, stream_id); + return; + //DIE("no proxy obj"); + } switch(type) { case SPDYLAY_SYN_REPLY: