Le 28/01/15 15:15, Emmanuel Lécharny a écrit :
> Le 28/01/15 14:56, Jakub Turcovsky a écrit :
>> Hello developers,
>>
>> I've implemented a client-server app using MINAv2.0.9 on both sides.
>> When communicating over UDP, server closes active session after 60s
>> (probably DEFAULT_TIME_TO_LIVE interval in ExpiringMap class). It
>> looks like server doesn't update time-to-live of the session with
>> every message sent. More about my problem at
>> http://stackoverflow.com/questions/28187401/apache-mina-server-closes-active-udp-session-after-60s.
> You can define your own SessinRecycler in the NioDatagram instance :
>
>     setSessionRecycler( IoSessionExpirer )
>
> Just pass it an instance that set the TimeToLive you wnat :
>
>     public ExpiringSessionRecycler(int timeToLive) {
>         this(timeToLive, ExpiringMap.DEFAULT_EXPIRATION_INTERVAL);
>     }
>
>
Now, that would be just a workaround. I think there is something fishy
in the way teh session recylcer works...

Can you fill a JIRA ?

Thanks !

Reply via email to