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

longshine commented on DIRMINA-1001:
------------------------------------

Please implement IoHandler.inputClosed(IoSession) method in your handler and 
close the session manually. If not, the inputClosed event will not stop being 
fired.

Mina doesn't close sessions actively since 2.0.9. There will be no issue if 
custom handlers are derived from IoHandlerAdapter. But if some handler 
implements the IoHandler interface and forgets to close sessions after 
inputClosed event, same problem will occur.

See the IoHandlerAdapter:
{code:title=IoHandlerAdapter.java|borderStyle=solid}
public void inputClosed(IoSession session) throws Exception {
    session.close(true);
}
{code}

> mina2.0.9  session.close  cpu100%
> ---------------------------------
>
>                 Key: DIRMINA-1001
>                 URL: https://issues.apache.org/jira/browse/DIRMINA-1001
>             Project: MINA
>          Issue Type: Bug
>          Components: Handler
>    Affects Versions: 2.0.9
>            Reporter: binwang
>             Fix For: 2.0.9
>
>
> my project  use mina 2.0.5 . now i use 2.0.9
> but There is something wrong with.
> i use Short connection.and  client  session.close everytime. but 2.0.9 cpu
> 100% when session.close.     i find  server Continuously perform 
> inputclose.why?  



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

Reply via email to