Hi Oleg,

Thanks for the quick answers.

Supun..

On Thu, Mar 4, 2010 at 6:48 PM, Oleg Kalnichevski <[email protected]> wrote:

> On Thu, 2010-03-04 at 16:51 +0530, Supun Kamburugamuva wrote:
> > Hi Oleg,
> >
> > We found the problem and we could re-produce it.
> >
> > What happens is client sends a request with a invalid content length.
> Actual
> > message size is higher than the content-length. I guess the decoder
> finishes
> > before the full message is read and rest of the message is considered as
> a
> > new message causing the 400 Bad request. Also it seems that the
> > ServiceHandler.exception(final NHttpServerConnection conn, final
> > HttpException e) is not called and HTTP core sends the 400 response
> directly
> > to the client.
> >
> > Does HTTP Core validate the content length? Is there a way to catch this
> > kind of errors and handle them gracefully?
> >
>
> HTTP cannot function properly unless messages are correctly delimited.
> There is really not much that can be done if the Content-Length value is
> miscalculated.
>
> Oleg
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [email protected]
> For additional commands, e-mail: [email protected]
>
>


-- 
Software Engineer, WSO2 Inc
http://wso2.org
supunk.blogspot.com

Reply via email to