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 2010/01/17 18:45:55 UTC

[jira] Commented: (DIRMINA-742) When session is closed, DefaultIoFilterChain is in deadlock.

    [ https://issues.apache.org/jira/browse/DIRMINA-742?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12801449#action_12801449 ] 

Emmanuel Lecharny commented on DIRMINA-742:
-------------------------------------------

You might have a deadlock somewhere else in your code. The DefaultIoFilterChain just switch a flag indicating that the session is now closed.

Can you provide your code ?

A thread dump could help too to know where the lock resides.

> When session is closed, DefaultIoFilterChain is in deadlock.
> ------------------------------------------------------------
>
>                 Key: DIRMINA-742
>                 URL: https://issues.apache.org/jira/browse/DIRMINA-742
>             Project: MINA
>          Issue Type: Bug
>          Components: Core
>    Affects Versions: 2.0.0-RC1
>         Environment: XP
>            Reporter: ncanis2
>             Fix For: 2.0.0-RC2
>
>
> It is mina 2.0.0RC1 in my project.
> My problem is:
> Client was connected with server.
> But, when server was exited suddenly, client couldn't call sessionClosed() method.
> DefaultIoFilterChain.java
> public void fireSessionClosed() {
>         // Update future.
>         try {
>             session.getCloseFuture().setClosed();   <= This is problem. deadlock invoked..
>         } catch (Throwable t) {
>             fireExceptionCaught(t);
>         }
>         // And start the chain.
>         Entry head = this.head;
>         callNextSessionClosed(head, session);
>     }

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