]> git.ipfire.org Git - thirdparty/squid.git/commitdiff
fixup: Improved diff a little
authorAlex Rousskov <rousskov@measurement-factory.com>
Fri, 30 Jul 2021 21:32:58 +0000 (17:32 -0400)
committerAlex Rousskov <rousskov@measurement-factory.com>
Fri, 30 Jul 2021 21:32:58 +0000 (17:32 -0400)
src/FwdState.cc

index 4e02a36ca7555ba1a3b073edef41ced9d1762550..0d328291d7a35407aec44d4d74c0a0cf7a7bbd76 100644 (file)
@@ -214,6 +214,17 @@ FwdState::stopAndDestroy(const char *reason)
     /* do not place any code here as this object may be gone by now */
 }
 
+/// Notify a pending subtask, if any, that we no longer need its help. We do not
+/// have to do this -- the subtask job will eventually end -- but ending it
+/// earlier reduces waste and may reduce DoS attack surface.
+void
+FwdState::cancelStep(const char *reason)
+{
+    tcpConnWait.cancel(reason);
+    encryptionWait.cancel(reason);
+    httpConnectWait.cancel(reason);
+}
+
 #if STRICT_ORIGINAL_DST
 /// bypasses peerSelect() when dealing with intercepted requests
 void
@@ -318,17 +329,6 @@ FwdState::~FwdState()
     debugs(17, 3, "FwdState destructed, this=" << this);
 }
 
-/// Notify a pending subtask, if any, that we no longer need its help. We do not
-/// have to do this -- the subtask job will eventually end -- but ending it
-/// earlier reduces waste and may reduce DoS attack surface.
-void
-FwdState::cancelStep(const char *reason)
-{
-    tcpConnWait.cancel(reason);
-    encryptionWait.cancel(reason);
-    httpConnectWait.cancel(reason);
-}
-
 /**
  * This is the entry point for client-side to start forwarding
  * a transaction.  It is a static method that may or may not