Re: [xSocket-develop] Question: ConnectionTimeout
Status: Inactive
Brought to you by:
grro
|
From: nova s. <mar...@gm...> - 2014-10-06 08:57:40
|
Hi Cristina,
IMHO if you want to keep the connection, you dont need to do "nbc.close();".
It will close connection even you return true on the method.
Have you tried using IIdleTimeoutHandler? I think thats what you are
looking :)
Regards,
Nova.S
On Thu, Sep 4, 2014 at 9:46 PM, MANITIU, Cristina Maria (Cristina Maria)**
CTR ** <cri...@al...> wrote:
> Hello,
>
>
>
> I have a question regarding ConnectionTimeout parameter
> and onConnectionTimeout method: if we set the value for ConnectionTimeout
> to 0 it means that the connection will never timeout and the method
> onConnectionTimeout will never be called?
>
> Or there is another method to never close INonBlockingConnection?
>
> In our code we have implemented the method onConnectionTimeout as
> you specify in your documentation:
>
>
>
> *public* *boolean* onConnectionTimeout(INonBlockingConnection nbc)
> *throws* *IOException* {
>
>
>
> nbc.close();
>
> *return* *true*;
>
> }
>
>
>
> And we don’t want to close at a specified amount of time the
> NonBlockingConnections.
>
>
>
> Any suggestions will be appreciated.
>
>
>
> Thank you,
>
> Cristina Manitiu
>
>
> ------------------------------------------------------------------------------
> Slashdot TV.
> Video for Nerds. Stuff that matters.
> http://tv.slashdot.org/
> _______________________________________________
> xSocket-develop mailing list
> xSo...@li...
> https://lists.sourceforge.net/lists/listinfo/xsocket-develop
>
>
|