diff options
author | Andrey Uzunov <andrey.uzunov@gmail.com> | 2013-10-10 15:01:37 +0000 |
---|---|---|
committer | Andrey Uzunov <andrey.uzunov@gmail.com> | 2013-10-10 15:01:37 +0000 |
commit | 78948196e5c86f353d1b0de3179ee3fcad21016c (patch) | |
tree | 6a2395d1fcd3984b4dca2f1b50a054374c47f10a | |
parent | 445f5b9ece4be4e2811cf72efc26a5f8a18110b6 (diff) | |
download | libmicrohttpd-78948196e5c86f353d1b0de3179ee3fcad21016c.tar.gz libmicrohttpd-78948196e5c86f353d1b0de3179ee3fcad21016c.zip |
mhd2spdy: dont die on frame for unknown stream
-rw-r--r-- | src/examples/mhd2spdy_spdy.c | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/src/examples/mhd2spdy_spdy.c b/src/examples/mhd2spdy_spdy.c index 17f170c1..2630df6d 100644 --- a/src/examples/mhd2spdy_spdy.c +++ b/src/examples/mhd2spdy_spdy.c | |||
@@ -348,7 +348,11 @@ spdy_cb_on_ctrl_recv(spdylay_session *session, | |||
348 | 348 | ||
349 | proxy = spdylay_session_get_stream_user_data(session, stream_id); | 349 | proxy = spdylay_session_get_stream_user_data(session, stream_id); |
350 | if(NULL == proxy) | 350 | if(NULL == proxy) |
351 | DIE("no proxy obj"); | 351 | { |
352 | PRINT_INFO2("received frame type %i for unkonwn stream id %i", type, stream_id); | ||
353 | return; | ||
354 | //DIE("no proxy obj"); | ||
355 | } | ||
352 | 356 | ||
353 | switch(type) { | 357 | switch(type) { |
354 | case SPDYLAY_SYN_REPLY: | 358 | case SPDYLAY_SYN_REPLY: |