Newbie questions
"이희승 (Trustin Lee)"
trustin at gmail.com
Thu Aug 20 03:42:42 EDT 2009
Thanks Iain for sharing your work. I think it looks fine although I
didn't run it by myself. I hope Bozo loves your contribution. :)
You might want to include your work into Netty 3.2. WDYT?
Cheers,
Trustin
On 08/18/2009 06:46 PM, Iain McGinniss wrote:
> Hi Bozo,
>
> I'll take a quick stab at this. I've attached something like what you're
> looking for, but beware: I've not tested this, I've just written it
> based on my current understanding of netty. Would be useful to have it
> reviewed by others in the community to see if it is a sensible pattern.
> The alternative would be to use a WriteTimeoutHandler in your pipeline,
> but I do not think this fits the requirements here as it will not
> trigger an exception if writes are being continuously issued, but never
> completing (due to a slow connection).
>
> Iain
>
>
>
> On 18 Aug 2009, at 10:11, Bozo Juretic wrote:
>
>> 이희승 (Trustin Lee) wrote:
>>> You could use org.jboss.netty.util.HashedWheelTimer and schedule a
>>> timeout for each request, cancel the scheduled timeout when a
>>> corresponding response is received, and handle the timeout if no
>>> response was received.
>>>
>> Trustin,
>>
>> first of all thank you for your kind response. Is it possible that you
>> give me a small (pseudo)code example or a pointer to existing code to
>> see how this can be practically done? I understand the principle, but am
>> all too new to netty to do it.
>>
>> Thank you,
>>
>> Bozo
>> _______________________________________________
>> netty-users mailing list
>> netty-users at lists.jboss.org
>> https://lists.jboss.org/mailman/listinfo/netty-users
>
>
> ------------------------------------------------------------------------
>
> _______________________________________________
> netty-users mailing list
> netty-users at lists.jboss.org
> https://lists.jboss.org/mailman/listinfo/netty-users
More information about the netty-users
mailing list