commit 0bebdb1cc3d5aaf217c1227ebc2b58ec7698377b parent 24d8b92412ef165c98f7d7dba7185907a37d35ac Author: Andrey Uzunov <andrey.uzunov@gmail.com> Date: Thu, 18 Jul 2013 16:52:05 +0000 spdy proxy: finish on curl error Diffstat:
| M | src/spdy2http/proxy.c | | | 10 | ++++------ |
1 file changed, 4 insertions(+), 6 deletions(-)
diff --git a/src/spdy2http/proxy.c b/src/spdy2http/proxy.c @@ -717,15 +717,11 @@ run () long timeout_curl = -1; struct timeval timeout; int ret; - //int ret2; int ret_curl; int ret_spdy; fd_set rs; fd_set ws; fd_set es; - //fd_set curl_rs; - //fd_set curl_ws; - //fd_set curl_es; int maxfd = -1; int maxfd_curl = -1; struct SPDY_Daemon *daemon; @@ -906,8 +902,10 @@ run () } else { - //TODO handle error - PRINT_INFO("bad curl result"); + PRINT_VERBOSE2("bad curl result for '%s'", proxy->url); + proxy->done = true; + call_spdy_run = true; + //TODO spdy should be notified to send RST_STREAM } } else PRINT_INFO("shouldn't happen");