diff options
Diffstat (limited to 'src/examples/mhd2spdy_http.c')
-rw-r--r-- | src/examples/mhd2spdy_http.c | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/src/examples/mhd2spdy_http.c b/src/examples/mhd2spdy_http.c index bb951e8d..8116b326 100644 --- a/src/examples/mhd2spdy_http.c +++ b/src/examples/mhd2spdy_http.c | |||
@@ -148,7 +148,8 @@ http_cb_response (void *cls, | |||
148 | static void | 148 | static void |
149 | http_cb_response_done(void *cls) | 149 | http_cb_response_done(void *cls) |
150 | { | 150 | { |
151 | 151 | (void)cls; | |
152 | //TODO remove | ||
152 | } | 153 | } |
153 | 154 | ||
154 | int | 155 | int |
@@ -370,6 +371,8 @@ http_cb_request_completed (void *cls, | |||
370 | void **con_cls, | 371 | void **con_cls, |
371 | enum MHD_RequestTerminationCode toe) | 372 | enum MHD_RequestTerminationCode toe) |
372 | { | 373 | { |
374 | (void)cls; | ||
375 | (void)connection; | ||
373 | struct HTTP_URI *http_uri; | 376 | struct HTTP_URI *http_uri; |
374 | struct Proxy *proxy; | 377 | struct Proxy *proxy; |
375 | 378 | ||
@@ -396,7 +399,7 @@ http_cb_request_completed (void *cls, | |||
396 | if(proxy->stream_id > 0 /*&& NULL != proxy->spdy_connection->session*/) | 399 | if(proxy->stream_id > 0 /*&& NULL != proxy->spdy_connection->session*/) |
397 | { | 400 | { |
398 | //send RST_STREAM_STATUS_CANCEL | 401 | //send RST_STREAM_STATUS_CANCEL |
399 | PRINT_INFO2("send rst_stream %i",proxy->spdy_active ); | 402 | PRINT_INFO2("send rst_stream %i %i",proxy->spdy_active, proxy->stream_id ); |
400 | spdylay_submit_rst_stream(proxy->spdy_connection->session, proxy->stream_id, 5); | 403 | spdylay_submit_rst_stream(proxy->spdy_connection->session, proxy->stream_id, 5); |
401 | } | 404 | } |
402 | /*else | 405 | /*else |