From sven at beta9.be Fri May 12 09:51:38 2006 From: sven at beta9.be (Sven Van Caekenberghe) Date: Fri, 12 May 2006 11:51:38 +0200 Subject: [kpax-devel] S-HTTP-[CLIENT|SERVER] Message-ID: 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