From 1fa35be8dee7806250afac6ae26d765b45df4d76 Mon Sep 17 00:00:00 2001 From: Alex Rousskov Date: Thu, 24 Mar 2011 09:48:34 -0600 Subject: [PATCH] Bug 3173: Assertion bodyPipe!=NULL on SslBump CONNECT response writing failure Do not call ConnStateData::startClosing() when we fail to write our CONNECT response while bumping a connection. startClosing() can only be used when we handle response bodies. Just close the connection, in hope that the connection close handler kicks in and cleans up. --- src/client_side_request.cc | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/client_side_request.cc b/src/client_side_request.cc index 60290aec56..f5aeb5d139 100644 --- a/src/client_side_request.cc +++ b/src/client_side_request.cc @@ -1189,7 +1189,8 @@ ClientHttpRequest::sslBumpEstablish(comm_err_t errflag) return; if (errflag) { - getConn()->startClosing("CONNECT response failure in SslBump"); + debugs(85, 3, HERE << "CONNECT response failure in SslBump: " << errflag); + comm_close(getConn()->fd); return; } -- 2.47.3