]> git.ipfire.org Git - thirdparty/squid.git/commit
Parser-NG: Convert the ConnStateData input buffer to SBuf
authorAmos Jeffries <squid3@treenet.co.nz>
Mon, 24 Mar 2014 04:57:32 +0000 (21:57 -0700)
committerAmos Jeffries <squid3@treenet.co.nz>
Mon, 24 Mar 2014 04:57:32 +0000 (21:57 -0700)
commit0e2f538320899fc48509259cd045bb6febc8c5f7
tree6804e4d07427f68f843af84247dc1d1906d35e4f
parent889fc478c33e9202115f090c4143e72c0427761e
parent243a89a4e4d65ea77a8f2d9373606b1a89cee2ef
Parser-NG: Convert the ConnStateData input buffer to SBuf

Prepare the way to efficiently parse client requests using SBuf based
parser-ng.

IoCallback stores a raw-pointer to the ConnStateData::In::buf member
object rather than an SBuf reference to the backing MemBlob or char*
store so that only the short (blocking) FD_READ_METHOD() call needs to
provide any synchronous guarantees. We also particularly need a direct
(raw) pointer to the ConnStateData member to prevent the possible
read/consume collisions causing problems with the ConnStateData callback
and avoid having to merge two separate SBuf.