]> git.ipfire.org Git - thirdparty/squid.git/commit - src/http.cc
Reduce "!Comm::MonitorsRead(serverConnection->fd)" assertions.
authorChristos Tsantilas <chtsanti@users.sourceforge.net>
Mon, 26 Jun 2017 14:34:57 +0000 (17:34 +0300)
committerChristos Tsantilas <chtsanti@users.sourceforge.net>
Mon, 26 Jun 2017 14:34:57 +0000 (17:34 +0300)
commit801cfc26b01931a7c4dca8a32c324f15564f11c6
tree398a86c78fc9218a00fbc4c26c9807b3350d7013
parent91489e450151447a010af2f8f283edb06111da3c
Reduce "!Comm::MonitorsRead(serverConnection->fd)" assertions.

* Protect Squid Client classes from new requests that compete with
  ongoing pinned connection use and
* resume dealing with new requests when those Client classes are done
  using the pinned connection.

Replaced primary ConnStateData::pinConnection() calls with a pair of
pinBusyConnection() and notePinnedConnectionBecameIdle() calls,
depending on the pinned connection state ("busy" or "idle").

Removed pinConnection() parameters that were not longer used or could be computed from the remaining parameters.

Removed ConnStateData::httpsPeeked() code "hiding" the originating
request and connection peer details while entering the first "idle"
state. The old (trunk r11880.1.6) bump-server-first code used a pair of
NULLs because "Intercepted connections do not have requests at the
connection pinning stage", but that limitation no longer applicable
because Squid always fakes (when intercepting) or parses (a CONNECT)
request now, even during SslBump step1.

The added XXX and TODOs are not directly related to this fix. They
were added to document problems discovered while working on this fix.

In v3.5 code, the same problems manifest as Read.cc
"fd_table[conn->fd].halfClosedReader != NULL" assertions.

This is a Measurement Factory project
src/FwdState.cc
src/base/RefCount.h
src/client_side.cc
src/client_side.h
src/clients/FtpRelay.cc
src/http.cc
src/servers/FtpServer.cc
src/tests/stub_client_side.cc