]> git.ipfire.org Git - thirdparty/squid.git/commit
Ssl::ServerPeeker must become a store_client to prevent [error] entry trimming
authorAlex Rousskov <rousskov@measurement-factory.com>
Fri, 24 Feb 2012 22:29:40 +0000 (15:29 -0700)
committerAlex Rousskov <rousskov@measurement-factory.com>
Fri, 24 Feb 2012 22:29:40 +0000 (15:29 -0700)
commitb4ab7b43c6720a5fae6d730c8c34e6cec4cb3eea
tree399af76ace70041b9f1e0c0a285a7998dae46626
parentcb9060beb21ebded32738d824bb857c07d5fa436
Ssl::ServerPeeker must become a store_client to prevent [error] entry trimming

We do not need a store client during the certificate peeking stage because we
do not send the error to the client and only accumulate what is being written
to the store. However, if there is no store client then Store will trim the
entry and we will hit a

  store_client.cc:198: "entry->swap_filen > -1 || entry->swappingOut()"

assertion when we finally try to use it to serve the error response.
src/ssl/ServerPeeker.cc
src/ssl/ServerPeeker.h