]> git.ipfire.org Git - thirdparty/squid.git/commit
Preserve caller context across Happy Eyeballs connection attempts (#499)
authorEduard Bagdasaryan <eduard.bagdasaryan@measurement-factory.com>
Mon, 21 Oct 2019 21:32:18 +0000 (21:32 +0000)
committerSquid Anubis <squid-anubis@squid-cache.org>
Sun, 27 Oct 2019 11:25:38 +0000 (11:25 +0000)
commit99ecc6a434d3f241fdb11133537a68b306bc8a59
tree91ae1de3c288876ed6b54a49a016a25f78918463
parentb20ce974759a375acb431e6825740d44a670d694
Preserve caller context across Happy Eyeballs connection attempts (#499)

To efficiently enforce various global and local limits, Happy Eyeballs
jobs uses two stand-alone HappyOrderEnforcer services that create job
calls. Thus, they need manual adjustments to preserve job context.

If similar changes are required in many places, we may want to add a
CodeContext member to the AsyncJob itself so that callbacks can
magically restore their context without service modifications (assuming
the job was created in or somehow provided the right context before
those callbacks).
src/HappyConnOpener.cc
src/HappyConnOpener.h