From f45e68e05babf73da0f3ba2c30ac79b7ce54e0dd Mon Sep 17 00:00:00 2001 From: Tatsuhiro Tsujikawa Date: Wed, 9 May 2012 23:35:06 +0900 Subject: [PATCH] Added debug output for incoming invalid frames to SpdyServer --- examples/SpdyServer.cc | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/examples/SpdyServer.cc b/examples/SpdyServer.cc index 945dd2ec..73cd9a27 100644 --- a/examples/SpdyServer.cc +++ b/examples/SpdyServer.cc @@ -736,6 +736,12 @@ private: callbacks.on_ctrl_send_callback = hd_on_ctrl_send_callback; callbacks.on_data_recv_callback = hd_on_data_recv_callback; callbacks.on_data_send_callback = hd_on_data_send_callback; + if(config()->verbose) { + callbacks.on_invalid_ctrl_recv_callback = on_invalid_ctrl_recv_callback; + callbacks.on_ctrl_recv_parse_error_callback = + on_ctrl_recv_parse_error_callback; + callbacks.on_unknown_ctrl_recv_callback = on_unknown_ctrl_recv_callback; + } callbacks.on_data_chunk_recv_callback = on_data_chunk_recv_callback; callbacks.on_request_recv_callback = config()->on_request_recv_callback; SpdyEventHandler *hd = new SpdyEventHandler(config(),