]> git.ipfire.org Git - thirdparty/squid.git/commitdiff
Fix http_port after rev.13497
authorAmos Jeffries <squid3@treenet.co.nz>
Wed, 16 Jul 2014 12:10:11 +0000 (06:10 -0600)
committerAmos Jeffries <squid3@treenet.co.nz>
Wed, 16 Jul 2014 12:10:11 +0000 (06:10 -0600)
Also, remove dead code if-statement in httpAccept(). Replace with a note
that the call may have been queued when a reconfgure happened to the port

src/client_side.cc

index 0db586e55277068894c4f455af50473ae80d659a..65344d0a72a9ff27f3c3b53ad07b7fa256482c4a 100644 (file)
@@ -3328,11 +3328,7 @@ httpAccept(const CommAcceptCbParams &params)
     MasterXaction::Pointer xact = params.xaction;
     AnyP::PortCfgPointer s = xact->squidPort;
 
-    if (!s) {
-        // it is possible the call or accept() was still queued when the port was reconfigured
-        debugs(33, 2, "HTTP accept failure: port reconfigured.");
-        return;
-    }
+    // NP: it is possible the port was reconfigured when the call or accept() was queued.
 
     if (params.flag != Comm::OK) {
         // Its possible the call was still queued when the client disconnected
@@ -3646,11 +3642,7 @@ httpsAccept(const CommAcceptCbParams &params)
     MasterXaction::Pointer xact = params.xaction;
     const AnyP::PortCfgPointer s = xact->squidPort;
 
-    if (!s.valid()) {
-        // it is possible the call or accept() was still queued when the port was reconfigured
-        debugs(33, 2, "HTTPS accept failure: port reconfigured.");
-        return;
-    }
+    // NP: it is possible the port was reconfigured when the call or accept() was queued.
 
     if (params.flag != Comm::OK) {
         // Its possible the call was still queued when the client disconnected