users@grizzly.java.net

Re: Close connection while handleRead()

From: Oleksiy Stashok <oleksiy.stashok_at_oracle.com>
Date: Tue, 25 Aug 2015 16:14:01 -0700

Hi,


On 25.08.15 07:40, Ben-Yosef Efrat wrote:
> I have a question, what is supposed to happen when while in
> handleRead(), a connection is closed?
It's up to the Filter code, if it explicitly checks if connection is
closed - it may interrupt filter chain processing, otherwise handleRead
will just carry on.

> Is the handleRead supposed to be finished and only then the handeClose
> will be called? will the handleClose be called at the time the
> connection is closed without waiting?
>
No, there is no synchronization between handleRead and handleClose, they
might be run in parallel.

> Same regarding the handleWrite.
>
Same as handleRead.

Thanks.

WBR,
Alexey.
>
> Thanks
>
> Efrat
>
> ------------------------------------------------------------------------
> “This e-mail message may contain confidential, commercial or
> privileged information that constitutes proprietary information of
> Comverse Inc. or its subsidiaries. If you are not the intended
> recipient of this message, you are hereby notified that any review,
> use or distribution of this information is absolutely prohibited and
> we request that you delete all copies and contact us by e-mailing to:
> security_at_comverse.com. Thank You.”