]> git.ipfire.org Git - thirdparty/squid.git/commit - src/tests/testSBuf.cc
Bug 4718: Support filling raw buffer space of shared SBufs (#64)
authorChristos Tsantilas <christos@chtsanti.net>
Fri, 6 Oct 2017 04:20:31 +0000 (07:20 +0300)
committerAlex Rousskov <rousskov@measurement-factory.com>
Fri, 6 Oct 2017 04:20:31 +0000 (22:20 -0600)
commit672337d16f7644e32069297199cf61894ded1bc5
tree2d3b7962c31ecd52a4b66ec582b9e273ef20b1e8
parent62b9cc19f273bb137fe7073d534d87573eb25aaf
Bug 4718: Support filling raw buffer space of shared SBufs (#64)

SBuf::forceSize() requires exclusive SBuf ownership but its precursor
SBuf::rawSpace() method does not guarantee exclusivity. The pair of
calls may result in SBuf::forceSize() throwing for no good reason.

New SBuf API provides a new pair of raw buffer appending calls that
reduces the number of false negatives.

This change may alleviate bug 4718 symptoms but does not address its
core problem (which is still unconfirmed).

This is a Measurement Factory project.
src/adaptation/icap/Xaction.cc
src/base/File.cc
src/comm/Read.cc
src/fs/rock/RockHeaderUpdater.cc
src/fs/rock/RockHeaderUpdater.h
src/sbuf/SBuf.cc
src/sbuf/SBuf.h
src/ssl/bio.cc
src/tests/stub_SBuf.cc
src/tests/testSBuf.cc