]> git.ipfire.org Git - thirdparty/squid.git/commit
Bug 5318: peer_digest.cc:399: "fetch->pd && receivedData.data" (#1584)
authorAlex Rousskov <rousskov@measurement-factory.com>
Mon, 20 Nov 2023 23:05:00 +0000 (23:05 +0000)
committerAmos Jeffries <yadij@users.noreply.github.com>
Tue, 28 Nov 2023 01:03:38 +0000 (14:03 +1300)
commit18209199f8c330176401eac7ef2deb06ca4389b9
treee027bb8bc6b687bab310f14c371c06ed4463303b
parent037a8ffb291f2bade5204658c79af93b5152543d
Bug 5318: peer_digest.cc:399: "fetch->pd && receivedData.data" (#1584)

Recent commit 122a6e3 removed HTTP response headers from store_client
responses. That removal created the possibility of an empty
StoreIOBuffer at the beginning of the feeding sequence. Pending Bug 5317
fix will make such buffers even more frequent. Existing store_client
recipients have varying requirements with regard to empty response
buffers, as documented in store_client::finishCallback(). We missed this
requirement conflict in Cache Digest code. This fix adjusts Cache
Digests code to be compatible with empty StoreIOBuffer representation in
current store_client code.
src/peer_digest.cc