dev@grizzly.java.net

Re: request timeout

From: ZhaoJian Dou <douzhaojian_at_gmail.com>
Date: Tue, 26 Jan 2010 11:26:21 +0800

The Grizzly i am using is 1.8.4, but this strategy should not be change in
the 1.9 or 2.0, you can check the class which implemented the
interface SelectionKeyHandler.

There is a method call public void expire(Iterator<SelectionKey> iterator)
{} that control the timeout and throw expire time exception.
.

On Tue, Jan 26, 2010 at 11:16 AM, ming qin <mingqin1_at_yahoo.com> wrote:

> Dou:
>
>
> "the default value in this handle is 30 s, if the request to the socket
> server beyond the setting, the request will be terminated automatically. you
> can set the arbitrary time you wanted. any issue please let me know. "
>
> is this feature implemented in Grizzly 1.9.** or 2.0?
>
>
> Ming Qin
> Cell Phone 858-353-2839
>
> --- On *Mon, 1/25/10, ZhaoJian Dou <douzhaojian_at_gmail.com>* wrote:
>
>
> From: ZhaoJian Dou <douzhaojian_at_gmail.com>
> Subject: Re: request timeout
> To: dev_at_grizzly.dev.java.net
> Date: Monday, January 25, 2010, 6:04 PM
>
>
> I guess you are trying to building socket server, The timeout value
> in DefaultSelectionKeyHandler(might be you have your handler extend
> from similar handler ), the default value in this handle is 30 s, if the
> request to the socket server beyond the setting, the request will be
> terminated automatically. you can set the arbitrary time you wanted. any
> issue please let me know.
>
> I am using grizzly building up one socket server now.
>
> On Tue, Jan 26, 2010 at 1:44 AM, Scott Oaks <Scott.Oaks@sun.com<http://mc/compose?to=Scott.Oaks@sun.com>
> > wrote:
>
>> I seem to recall that there was something added to grizzly that will
>> terminate a request that is taking too long, but I can't find any
>> documentation on it -- do I misremember, or are my google skills in serious
>> need of work?
>>
>> -Scott
>>
>> ---------------------------------------------------------------------
>> To unsubscribe, e-mail: dev-unsubscribe@grizzly.dev.java.net<http://mc/compose?to=dev-unsubscribe@grizzly.dev.java.net>
>> For additional commands, e-mail: dev-help@grizzly.dev.java.net<http://mc/compose?to=dev-help@grizzly.dev.java.net>
>>
>>
>