You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@mina.apache.org by "Emmanuel Lecharny (JIRA)" <ji...@apache.org> on 2009/07/06 12:08:14 UTC

[jira] Resolved: (DIRMINA-726) session.getRemoteAddress() returns NULL in the callback sessionClosed

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

Emmanuel Lecharny resolved DIRMINA-726.
---------------------------------------

    Resolution: Invalid

Hopefully, getRemoteAddress() returns null when the session is closed, otherwise that would mean that the session is *not* closed ...

If you want to get the IP address of the closed session, you must get it when the session is opened, and store it in the session, so it will be available even when the sessionClosed message is fired.

> session.getRemoteAddress() returns NULL in the callback sessionClosed
> ---------------------------------------------------------------------
>
>                 Key: DIRMINA-726
>                 URL: https://issues.apache.org/jira/browse/DIRMINA-726
>             Project: MINA
>          Issue Type: Bug
>          Components: Handler
>    Affects Versions: 2.0.0-M6
>            Reporter: Oscar Huang
>            Priority: Minor
>
> After adding the code 'chain.addLast("executor", new ExecutorFilter());', session.getRemoteAddress() returns NULL in the callback sessionClosed.
> I don't know whether it is a bug or not.
> The work around is deregistering the IoEventType.SESSION_CLOSED from ExecutorFilter.

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