diff options
author | corvid <devnull@localhost> | 2016-04-09 15:53:21 +0000 |
---|---|---|
committer | corvid <devnull@localhost> | 2016-04-09 15:53:21 +0000 |
commit | 2e31d0502fd10c46fea3eb5e8f52fa3bc8e53f04 (patch) | |
tree | 1aa16917d1ef6fa96fe73a7af58411fb0cf3d3b2 /src/IO/http.c | |
parent | 17601c3157a73965b23789285953953a54960ce2 (diff) |
if we get an error (e.g. ECONNRESET) while reading, abort the read and show a status message
Diffstat (limited to 'src/IO/http.c')
-rw-r--r-- | src/IO/http.c | 11 |
1 files changed, 11 insertions, 0 deletions
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; |