mina-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Trustin Lee (JIRA)" <j...@apache.org>
Subject [jira] Closed: (DIRMINA-319) DatagramConnector doesn't need IoSessionRecycler at all.
Date Tue, 05 Dec 2006 03:38:21 GMT
     [ http://issues.apache.org/jira/browse/DIRMINA-319?page=all ]

Trustin Lee closed DIRMINA-319.
-------------------------------

    Resolution: Fixed

Done.  DatagramService interface, which were providing get/setSessionRecycler(), has been
removed.  DatagramConnector doesn't use sessionRecycler at all anymore.

> DatagramConnector doesn't need IoSessionRecycler at all.
> --------------------------------------------------------
>
>                 Key: DIRMINA-319
>                 URL: http://issues.apache.org/jira/browse/DIRMINA-319
>             Project: MINA
>          Issue Type: Bug
>    Affects Versions: 1.0
>            Reporter: Trustin Lee
>         Assigned To: Trustin Lee
>            Priority: Minor
>             Fix For: 2.0
>
>
> DatagramConnector doesn't use of IoSessionRecycler at all because {@link DatagramConnector}
doesn't create a session with the same remote and local addresses.  This is an API design
flaw.  We don't need DatagramService either because of the same reason.
> In MINA 1.0, IoSessionRecycler was only useful for DatagramConnector in that it closes
the connection when the session is idle for certain amount of time, but this is an incorrect
behavior and should be implemented by IoHandler implementor using sessionIdle event.
> Note that neither a server nor a client can't detect that the remote peer closed the
connection at all due to its natural born property.  You will have to build your own IoSessionRecycler
which fits to the protocol you want to implement.
> This issue will be fixed in 2.0 and the current buggy behavior will be retained in 1.0/1.1
branch.

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: http://issues.apache.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

Mime
View raw message