From 2e31d0502fd10c46fea3eb5e8f52fa3bc8e53f04 Mon Sep 17 00:00:00 2001 From: corvid Date: Sat, 9 Apr 2016 15:53:21 +0000 Subject: if we get an error (e.g. ECONNRESET) while reading, abort the read and show a status message --- src/IO/http.c | 11 +++++++++++ 1 file changed, 11 insertions(+) (limited to 'src/IO/http.c') diff --git a/src/IO/http.c b/src/IO/http.c index 379d51c1..15cd173c 100644 --- a/src/IO/http.c +++ b/src/IO/http.c @@ -911,6 +911,17 @@ void a_Http_ccc(int Op, int Branch, int Dir, ChainLink *Info, } dFree(Info); break; + case OpAbort: + if (sd->https_proxy_reply) { + MSG("CONNECT through proxy failed. " + "Full reply not received:\n%s\n", + sd->https_proxy_reply->len ? sd->https_proxy_reply->str : + "(nothing)"); + } + Http_socket_free(SKey); + a_Chain_fcb(OpAbort, Info, NULL, "Both"); + dFree(Info); + break; default: MSG_WARN("Unused CCC 2F Op %d\n", Op); break; -- cgit v1.2.3