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/15 11:18:54 UTC

[jira] Created: (DIRMINA-757) Add an entry in FAQ explaining how to correctly close a session and dispose the connector

Add an entry in FAQ explaining how to correctly close a session and dispose the connector
-----------------------------------------------------------------------------------------

                 Key: DIRMINA-757
                 URL: https://issues.apache.org/jira/browse/DIRMINA-757
             Project: MINA
          Issue Type: Task
    Affects Versions: 2.0.0-RC1
            Reporter: Emmanuel Lecharny
            Priority: Critical
             Fix For: 2.0.0-RC2


Many people are complaining about the fact that their program is hanging when they try to close a session and dispose the connector in the listener this way :

        CloseFuture closeFuture = cf.getSession().getCloseFuture();
        closeFuture.addListener((IoFutureListener<?>) new IoFutureListener<IoFuture>() {

            @Override
            public void operationComplete(IoFuture future) {
                connector.dispose(); // This will hang !
            }
        });

        // wait for session close and then dispose the connector
        closeFuture.getSession().close(false);
        closeFuture.awaitUninterruptibly();

We have to explain in the FAQ that the dispose must not be put in the listener.

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


[jira] Updated: (DIRMINA-757) Add an entry in FAQ explaining how to correctly close a session and dispose the connector

Posted by "Emmanuel Lecharny (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/DIRMINA-757?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Emmanuel Lecharny updated DIRMINA-757:
--------------------------------------

    Fix Version/s:     (was: 2.0.0-RC2)
                   2.0.0

> Add an entry in FAQ explaining how to correctly close a session and dispose the connector
> -----------------------------------------------------------------------------------------
>
>                 Key: DIRMINA-757
>                 URL: https://issues.apache.org/jira/browse/DIRMINA-757
>             Project: MINA
>          Issue Type: Task
>    Affects Versions: 2.0.0-RC1
>            Reporter: Emmanuel Lecharny
>            Priority: Critical
>             Fix For: 2.0.0
>
>
> Many people are complaining about the fact that their program is hanging when they try to close a session and dispose the connector in the listener this way :
>         CloseFuture closeFuture = cf.getSession().getCloseFuture();
>         closeFuture.addListener((IoFutureListener<?>) new IoFutureListener<IoFuture>() {
>             @Override
>             public void operationComplete(IoFuture future) {
>                 connector.dispose(); // This will hang !
>             }
>         });
>         // wait for session close and then dispose the connector
>         closeFuture.getSession().close(false);
>         closeFuture.awaitUninterruptibly();
> We have to explain in the FAQ that the dispose must not be put in the listener.

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


[jira] Commented: (DIRMINA-757) Add an entry in FAQ explaining how to correctly close a session and dispose the connector

Posted by "Rich Lucente (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/DIRMINA-757?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12910571#action_12910571 ] 

Rich Lucente commented on DIRMINA-757:
--------------------------------------

The FAQ internal anchors aren't working.  it's a nit, but there's spurious "25" on the links.  Take a look at:

<LI><A href="#FAQ-HowdoIclosemysessionsanddisposemyConnector%253F">How do

should link to:

<H3><A name="FAQ-HowdoIclosemysessionsanddisposemyConnector%3F"></A>

but the "25" is preventing that.

> Add an entry in FAQ explaining how to correctly close a session and dispose the connector
> -----------------------------------------------------------------------------------------
>
>                 Key: DIRMINA-757
>                 URL: https://issues.apache.org/jira/browse/DIRMINA-757
>             Project: MINA
>          Issue Type: Task
>    Affects Versions: 2.0.0-RC1
>            Reporter: Emmanuel Lecharny
>            Priority: Critical
>             Fix For: 2.0.0
>
>
> Many people are complaining about the fact that their program is hanging when they try to close a session and dispose the connector in the listener this way :
>         CloseFuture closeFuture = cf.getSession().getCloseFuture();
>         closeFuture.addListener((IoFutureListener<?>) new IoFutureListener<IoFuture>() {
>             @Override
>             public void operationComplete(IoFuture future) {
>                 connector.dispose(); // This will hang !
>             }
>         });
>         // wait for session close and then dispose the connector
>         closeFuture.getSession().close(false);
>         closeFuture.awaitUninterruptibly();
> We have to explain in the FAQ that the dispose must not be put in the listener.

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


[jira] Commented: (DIRMINA-757) Add an entry in FAQ explaining how to correctly close a session and dispose the connector

Posted by "Emmanuel Lecharny (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/DIRMINA-757?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12910592#action_12910592 ] 

Emmanuel Lecharny commented on DIRMINA-757:
-------------------------------------------

This is a confluence bug :
http://jira.atlassian.com/browse/CONF-2461

You can use Chrome or Safari (if you are a lucky Mac user), those browsers are sart enough to still work even if the URL is encoded twice...

> Add an entry in FAQ explaining how to correctly close a session and dispose the connector
> -----------------------------------------------------------------------------------------
>
>                 Key: DIRMINA-757
>                 URL: https://issues.apache.org/jira/browse/DIRMINA-757
>             Project: MINA
>          Issue Type: Task
>    Affects Versions: 2.0.0-RC1
>            Reporter: Emmanuel Lecharny
>            Priority: Critical
>             Fix For: 2.0.0
>
>
> Many people are complaining about the fact that their program is hanging when they try to close a session and dispose the connector in the listener this way :
>         CloseFuture closeFuture = cf.getSession().getCloseFuture();
>         closeFuture.addListener((IoFutureListener<?>) new IoFutureListener<IoFuture>() {
>             @Override
>             public void operationComplete(IoFuture future) {
>                 connector.dispose(); // This will hang !
>             }
>         });
>         // wait for session close and then dispose the connector
>         closeFuture.getSession().close(false);
>         closeFuture.awaitUninterruptibly();
> We have to explain in the FAQ that the dispose must not be put in the listener.

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


[jira] Closed: (DIRMINA-757) Add an entry in FAQ explaining how to correctly close a session and dispose the connector

Posted by "Emmanuel Lecharny (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/DIRMINA-757?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Emmanuel Lecharny closed DIRMINA-757.
-------------------------------------


> Add an entry in FAQ explaining how to correctly close a session and dispose the connector
> -----------------------------------------------------------------------------------------
>
>                 Key: DIRMINA-757
>                 URL: https://issues.apache.org/jira/browse/DIRMINA-757
>             Project: MINA
>          Issue Type: Task
>    Affects Versions: 2.0.0-RC1
>            Reporter: Emmanuel Lecharny
>            Priority: Critical
>             Fix For: 2.0.0-RC2
>
>
> Many people are complaining about the fact that their program is hanging when they try to close a session and dispose the connector in the listener this way :
>         CloseFuture closeFuture = cf.getSession().getCloseFuture();
>         closeFuture.addListener((IoFutureListener<?>) new IoFutureListener<IoFuture>() {
>             @Override
>             public void operationComplete(IoFuture future) {
>                 connector.dispose(); // This will hang !
>             }
>         });
>         // wait for session close and then dispose the connector
>         closeFuture.getSession().close(false);
>         closeFuture.awaitUninterruptibly();
> We have to explain in the FAQ that the dispose must not be put in the listener.

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


[jira] Resolved: (DIRMINA-757) Add an entry in FAQ explaining how to correctly close a session and dispose the connector

Posted by "Emmanuel Lecharny (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/DIRMINA-757?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Emmanuel Lecharny resolved DIRMINA-757.
---------------------------------------

    Resolution: Fixed

Done

> Add an entry in FAQ explaining how to correctly close a session and dispose the connector
> -----------------------------------------------------------------------------------------
>
>                 Key: DIRMINA-757
>                 URL: https://issues.apache.org/jira/browse/DIRMINA-757
>             Project: MINA
>          Issue Type: Task
>    Affects Versions: 2.0.0-RC1
>            Reporter: Emmanuel Lecharny
>            Priority: Critical
>             Fix For: 2.0.0-RC2
>
>
> Many people are complaining about the fact that their program is hanging when they try to close a session and dispose the connector in the listener this way :
>         CloseFuture closeFuture = cf.getSession().getCloseFuture();
>         closeFuture.addListener((IoFutureListener<?>) new IoFutureListener<IoFuture>() {
>             @Override
>             public void operationComplete(IoFuture future) {
>                 connector.dispose(); // This will hang !
>             }
>         });
>         // wait for session close and then dispose the connector
>         closeFuture.getSession().close(false);
>         closeFuture.awaitUninterruptibly();
> We have to explain in the FAQ that the dispose must not be put in the listener.

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


[jira] Commented: (DIRMINA-757) Add an entry in FAQ explaining how to correctly close a session and dispose the connector

Posted by "Emmanuel Lecharny (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/DIRMINA-757?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12910597#action_12910597 ] 

Emmanuel Lecharny commented on DIRMINA-757:
-------------------------------------------

This should be fixed (in a few hours) : we replaced the '?' at the end of each link by &#63;...
yuk :/

> Add an entry in FAQ explaining how to correctly close a session and dispose the connector
> -----------------------------------------------------------------------------------------
>
>                 Key: DIRMINA-757
>                 URL: https://issues.apache.org/jira/browse/DIRMINA-757
>             Project: MINA
>          Issue Type: Task
>    Affects Versions: 2.0.0-RC1
>            Reporter: Emmanuel Lecharny
>            Priority: Critical
>             Fix For: 2.0.0
>
>
> Many people are complaining about the fact that their program is hanging when they try to close a session and dispose the connector in the listener this way :
>         CloseFuture closeFuture = cf.getSession().getCloseFuture();
>         closeFuture.addListener((IoFutureListener<?>) new IoFutureListener<IoFuture>() {
>             @Override
>             public void operationComplete(IoFuture future) {
>                 connector.dispose(); // This will hang !
>             }
>         });
>         // wait for session close and then dispose the connector
>         closeFuture.getSession().close(false);
>         closeFuture.awaitUninterruptibly();
> We have to explain in the FAQ that the dispose must not be put in the listener.

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