]> git.ipfire.org Git - thirdparty/squid.git/commit
Do not access-log SslBump-faked CONNECTs with _ABORTED suffixes.
authorAlex Rousskov <rousskov@measurement-factory.com>
Wed, 17 Aug 2016 22:46:38 +0000 (16:46 -0600)
committerAlex Rousskov <rousskov@measurement-factory.com>
Wed, 17 Aug 2016 22:46:38 +0000 (16:46 -0600)
commit08a8a70bdd97e75c41acfce6d852d4934533b704
treeaa0ee5041c5dc3937b2d08de07d3d2b97dfb5ebb
parent0166128b48098dd2c666f2b628890b8f81dd2428
Do not access-log SslBump-faked CONNECTs with _ABORTED suffixes.

All successful transactions, including fake CONNECTs, must be removed
from the pipeline (via a finished() call) to avoid _ABORTED suffix
added by Pipeline::terminateAll() which always calls noteIoError().

Also added a check that the remaining request in the pipeline is the
expected CONNECT. Old comments said as much but the code did not throw
if a different request was pipelined (and asserted if more than one
requests were). We now throw in all these problematic cases. I cannot
track all ConnStateData::getSslContextStart() callers deep enough to
be sure that only a single CONNECT can get through, but the change
reflects the expected behavior (and it may be useful to discover any
reality deviations from our expectations).
src/client_side.cc