users@grizzly.java.net

Re: Error suspending the Response of a POST that have a big input payload

From: Oleksiy Stashok <oleksiy.stashok_at_oracle.com>
Date: Tue, 12 Oct 2010 11:08:11 +0200

Hi Etienne,

can you pls. provide a small sample how I can reproduce the issue.
I'll be glad to help you.

WBR,
Alexey.

On Oct 9, 2010, at 7:34 , Vrignaud Etienne wrote:

>
> Hi,
>
> I am trying to use the suspend/resume API of the Response class.
> My use case is to send to my sever a big payload using a POST request.
> When I use suspend/resume I have the following error: "GRAVE:
> GRIZZLY0040:
> Request header is too large.
>
> java.nio.BufferOverflowException"
>
> Here is a description of what I am doing:
> . I use grizzly 1.9.19
> . I use a http://old.nabble.com/file/p29920874/echo.zip echo.zip
> SelectorThread in synchronous mode
> "setEnableAsyncExecution( false )". Is
> that correct ?
> . I suspend the response before reading the input payload.
> . I start a thread that will manage the Request
>
> I have noticed that before my thread finished to read the complete
> input
> payload, another Grizzly thread is started and use the content of my
> payload
> as a new request.
> What I am wondering is that the Response is suspended, but not the
> Request.
>
> I have provided in attachment a maven project that contain my
> failing test
> case. (echo.zip)
>
> Could you tell me what's going wrong with that usage of suspend/
> resume.
>
> Thanks for your help,
> /Etienne VRIGNAUD
> --
> View this message in context: http://old.nabble.com/Error-suspending-the-Response-of-a-POST-that-have-a-big-input-payload-tp29920874p29920874.html
> Sent from the Grizzly - Users mailing list archive at Nabble.com.
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe_at_grizzly.dev.java.net
> For additional commands, e-mail: users-help_at_grizzly.dev.java.net
>