From: Alex Rousskov Date: Thu, 18 Aug 2022 23:28:05 +0000 (+0000) Subject: Make COMM_ORPHANED and COMM_REUSEPORT values distinct (#1116) X-Git-Tag: SQUID_6_0_1~129 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=505463013a13cb5caead8697c4d29ce4a7734e24;p=thirdparty%2Fsquid.git Make COMM_ORPHANED and COMM_REUSEPORT values distinct (#1116) 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. --- diff --git a/src/comm/Connection.h b/src/comm/Connection.h index b5b6aa1906..9da1ff47b0 100644 --- a/src/comm/Connection.h +++ b/src/comm/Connection.h @@ -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.