]> git.ipfire.org Git - thirdparty/squid.git/commitdiff
Make COMM_ORPHANED and COMM_REUSEPORT values distinct (#1116)
authorAlex Rousskov <rousskov@measurement-factory.com>
Thu, 18 Aug 2022 23:28:05 +0000 (23:28 +0000)
committerSquid Anubis <squid-anubis@squid-cache.org>
Fri, 19 Aug 2022 12:36:54 +0000 (12:36 +0000)
Broken since inception (commit 1c2b446). The exact runtime effects (if
any) of this bug are difficult to ascertain, but it is possible that
some COMM_REUSEPORT (i.e. worker-queues port) listening connections were
not reported as incorrectly orphaned when they should have been.

src/comm/Connection.h

index b5b6aa19069111a70d9edb4fc72d32565dfa65ce..9da1ff47b062f391b7a2dcf3f000b254735ce94a 100644 (file)
@@ -51,7 +51,7 @@ namespace Comm
 #define COMM_INTERCEPTION       0x20  // arrived via NAT
 #define COMM_REUSEPORT          0x40 //< needs SO_REUSEPORT
 /// not registered with Comm and not owned by any connection-closing code
-#define COMM_ORPHANED           0x40
+#define COMM_ORPHANED           0x80
 
 /**
  * Store data about the physical and logical attributes of a connection.