You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@mina.apache.org by "Julien Vermillard (JIRA)" <ji...@apache.org> on 2008/06/27 11:23:45 UTC

[jira] Closed: (DIRMINA-535) Session creation/opened callbacks are not called at logical times

     [ https://issues.apache.org/jira/browse/DIRMINA-535?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Julien Vermillard closed DIRMINA-535.
-------------------------------------


> Session creation/opened callbacks are not called at logical times
> -----------------------------------------------------------------
>
>                 Key: DIRMINA-535
>                 URL: https://issues.apache.org/jira/browse/DIRMINA-535
>             Project: MINA
>          Issue Type: Bug
>          Components: Core
>    Affects Versions: 2.0.0-M1
>            Reporter: David M. Lloyd
>            Assignee: Trustin Lee
>             Fix For: 2.0.0-M2
>
>
> The IoHandler.sessionCreated and IoHandler.sessionOpened methods are not called at useful times.  The sessionCreated method should be called *after* the session is constructed but before anything else is done.  The sessionOpened method should be called immediately after the connection is established, but *before* any messages are received (in other words, before the selectionkey is added to the selector).
> From the look of the code in AbstractPollingIoProcessor, it looks like sessionOpened is simply called immediately after sessionCreated (see IoServiceListenerSupport.fireSessionCreated()), rendering the separate methods useless.  In addition, it seems that there is nothing preventing a message from coming in before this initialization is complete, unless I am misunderstanding what threads are operating on these constructs.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.