]> git.ipfire.org Git - thirdparty/squid.git/commit
Various changes to break out the request parsing state and remove extra malloc/copies
authoradrian <>
Tue, 26 Sep 2006 21:19:22 +0000 (21:19 +0000)
committeradrian <>
Tue, 26 Sep 2006 21:19:22 +0000 (21:19 +0000)
commita5baffbadcda654e9cef5781aab97b829d3dcab6
treeb95d3902d7395358b96d9f4b19c7d875b89c51c9
parentf4aad2e72b175967abb118772807adab48a3926e
Various changes to break out the request parsing state and remove extra malloc/copies
* Create a HttpParser structure to encapsulate the current parsing state
* Add some functions to return the current request/header length with some checks
  (which are expensive and should be inlined later once the code is proven to
  work.)
* Use the connection buffer rather than a temporary buffer to parse the request
  headers, saving a malloc and copy (the 'prefix' buffer)
src/HttpMsg.cc
src/HttpMsg.h
src/client_side.cc