On 7/22/11 11:06 AM, Roger Schildmeijer wrote:
Hi,
First of all...I think that some parts of the (naive) http decoding in Deft
should probably be improved and/or refactored...
Currently the http chunks are concatenated and accumulated (as a
java.lang.String) in an PartialHttpRequest instance.
The interesting code path for this is.
HttpProtocol.handleRead ->
HttpProtocol.getHttpRequest ->
HttpProtocol.doGetHttpRequest ->
HttpRequest.of (1st chunk) ->
HttpRequest.continueParsing (2nd, 3rd, .. etc, chunk) ->
Let me know if this makes sense...
I can give you a hand on the HTTP decoder. It's very unlikely that the
HTTP header will become big. The body is another story. IMO, once the
header has been decoded, the body should be passed through to the
application as fast as we received it. It will then be up to the
application to manage bug pages.
Does it make sense ?
--
Regards,
Cordialement,
Emmanuel Lécharny
www.iktek.com