Exception "DefaultHttpChunk cannot be cast to HttpRequest"

Trustin Lee tlee at redhat.com
Wed Mar 18 14:24:26 EDT 2009


Hi Huican,

On Wed, Mar 18, 2009 at 11:34 PM, huican ping <pinghuican at gmail.com> wrote:
> Hello Trustin,
>
> For the issue:
>>> While debugging a little bit, I noticed that after I sent-in this message, I
>>> got multiple times of messageReceived() calls. For one message, am I
>>> supposed to get multiple messageReceived() call?
>
> Do you think it is right for having multiple messageReceived() for one
> input message?

Would you receive a 100 MB multipart request as one single message and
risk your server to death?  As I already stated explicitly in the
release announcement and the revised examples, you can always go back
to the previous behavior by adding HttpChunkAggregator.  Please know
if you have a better idea to deal with this sort of situation.  :)

Also, I'm not sure hiding chunked encoding from you is a good idea if
a client or server is sending a chunked message.

HTH,

— Trustin Lee, http://gleamynode.net/




More information about the netty-users mailing list