diff options
Diffstat (limited to 'src/spdy2http/proxy.c')
-rw-r--r-- | src/spdy2http/proxy.c | 10 |
1 files changed, 4 insertions, 6 deletions
diff --git a/src/spdy2http/proxy.c b/src/spdy2http/proxy.c index 22c0a40b..3d592f94 100644 --- a/src/spdy2http/proxy.c +++ b/src/spdy2http/proxy.c | |||
@@ -717,15 +717,11 @@ run () | |||
717 | long timeout_curl = -1; | 717 | long timeout_curl = -1; |
718 | struct timeval timeout; | 718 | struct timeval timeout; |
719 | int ret; | 719 | int ret; |
720 | //int ret2; | ||
721 | int ret_curl; | 720 | int ret_curl; |
722 | int ret_spdy; | 721 | int ret_spdy; |
723 | fd_set rs; | 722 | fd_set rs; |
724 | fd_set ws; | 723 | fd_set ws; |
725 | fd_set es; | 724 | fd_set es; |
726 | //fd_set curl_rs; | ||
727 | //fd_set curl_ws; | ||
728 | //fd_set curl_es; | ||
729 | int maxfd = -1; | 725 | int maxfd = -1; |
730 | int maxfd_curl = -1; | 726 | int maxfd_curl = -1; |
731 | struct SPDY_Daemon *daemon; | 727 | struct SPDY_Daemon *daemon; |
@@ -906,8 +902,10 @@ run () | |||
906 | } | 902 | } |
907 | else | 903 | else |
908 | { | 904 | { |
909 | //TODO handle error | 905 | PRINT_VERBOSE2("bad curl result for '%s'", proxy->url); |
910 | PRINT_INFO("bad curl result"); | 906 | proxy->done = true; |
907 | call_spdy_run = true; | ||
908 | //TODO spdy should be notified to send RST_STREAM | ||
911 | } | 909 | } |
912 | } | 910 | } |
913 | else PRINT_INFO("shouldn't happen"); | 911 | else PRINT_INFO("shouldn't happen"); |