]> git.ipfire.org Git - thirdparty/squid.git/commitdiff
Bug 3447: assertion failed: CommCalls.h:150: "dp"
authorAmos Jeffries <squid3@treenet.co.nz>
Thu, 22 Dec 2011 07:30:04 +0000 (00:30 -0700)
committerAmos Jeffries <squid3@treenet.co.nz>
Thu, 22 Dec 2011 07:30:04 +0000 (00:30 -0700)
Detatch FD/connection close handlers from reliance on commCloseCbParams
some handlers use FdeCbParams and others are possible.

If the callback handler needs FD the call creator must save it in the
params at call construction time.

src/comm.cc

index 069962b65f68b5175c48393bcc20265e84a88713..7a364f9a495a0eb6df133ed7102e069711c0faf8 100644 (file)
@@ -936,10 +936,6 @@ commCallCloseHandlers(int fd)
         // If call is not canceled schedule it for execution else ignore it
         if (!call->canceled()) {
             debugs(5, 5, "commCallCloseHandlers: ch->handler=" << call);
-            // XXX: this should not be needed. Params can be set by the call creator
-            typedef CommCloseCbParams Params;
-            Params &params = GetCommParams<Params>(call);
-            params.fd = fd;
             ScheduleCallHere(call);
         }
     }