[kpax-devel] S-HTTP-[CLIENT|SERVER]

Sven Van Caekenberghe sven at beta9.be
Fri May 12 09:51:38 UTC 2006


I made some changes to both S-HTTP-CLIENT and S-HTTP-SERVER to  
optimize the way CRLF terminated lines are read and headers are being  
parsed - string allocation should be reduced. More specifically, a  
new function READ-CRLF-LINE was introduced which is reading the line  
in a predefined string buffer. The most common header field names  
should be recognised more efficiently. Reading large responses should  
also be more efficient. The actual shared buffer is kept per session  
(connection handling loop) - an extra win for kept-alive connections.  
This change introduces a hard limit on header line length (4096  
characters), which should be no problem in practice.

I hope this didn't break anything for anybody else.

Sven



More information about the kpax-devel mailing list