From: Eduard Bagdasaryan Date: Fri, 10 Feb 2023 15:44:18 +0000 (+0000) Subject: Run cache_peer probes without transaction context (#1256) X-Git-Tag: SQUID_6_0_1~16 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=be5328880c80c64300221f1919b8cb78981d3b78;p=thirdparty%2Fsquid.git Run cache_peer probes without transaction context (#1256) Even when triggered by a master transaction, these background probes should not be associated with it. That transaction just wants to know whether the neighbor is "up" right now. The transaction does not wait (and is not aware of) the background probe its question may or may not have triggered. --- diff --git a/src/neighbors.cc b/src/neighbors.cc index b0f235dd97..766d912e6c 100644 --- a/src/neighbors.cc +++ b/src/neighbors.cc @@ -1145,7 +1145,10 @@ int neighborUp(const CachePeer * p) { if (!p->tcp_up) { - peerProbeConnect(const_cast(p)); + // TODO: When CachePeer gets its own CodeContext, pass that context instead of nullptr + CallService(nullptr, [&] { + peerProbeConnect(const_cast(p)); + }); return 0; }