From: Amos Jeffries Date: Fri, 16 Dec 2011 09:10:02 +0000 (+1300) Subject: Bug 3391: raise cbdata lock limits X-Git-Tag: BumpSslServerFirst.take05~12^2~121 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=3ad2eed0e96c7874745a0b7cf02025b3f3adddf9;p=thirdparty%2Fsquid.git Bug 3391: raise cbdata lock limits In 3.2 it is now possible to have >64K simultaneous connections referencing some permanent cbdata locked state (port, peer, acl etc) --- diff --git a/src/cbdata.cc b/src/cbdata.cc index 72c0617b98..cc92cd0c07 100644 --- a/src/cbdata.cc +++ b/src/cbdata.cc @@ -108,7 +108,7 @@ public: ~cbdata(); int valid; - int locks; + int32_t locks; cbdata_type type; #if USE_CBDATA_DEBUG @@ -419,7 +419,7 @@ cbdataInternalLock(const void *p) c->check(__LINE__); - assert(c->locks < 65535); + assert(c->locks < INT_MAX); c->locks++; }