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

eli_user commented on DIRMINA-1048:
-----------------------------------

Not yet, the problem is that IoException is very hard for me to reproduce.

Here 
https://msdn.microsoft.com/en-us/library/windows/desktop/ms740668(v=vs.85).aspx 
says:

WSAECONNABORTED
10053
Software caused connection abort.
An established connection was aborted by the software in your host computer, 
possibly due to a data transmission time-out or protocol error.

Do you think Mina 2.0.15 solves the problem?

I have seen differences between 2.0.15 and 2.0.13:

git diff 8bae1d4f5e0580d275c09bbf3782f731187c96af 
df31ebd8c857d18e10082cdfe4252316ecf874b3 
./mina-core/src/main/java/org/apache/mina/core/polling/AbstractPollingIoProcessor.java

and seems that exception thrown here:
while ((ret = read(session, buf)) > 0) {

is managed in the same way.

Anyway tomorrow i am trying to patch apache-mina core in order to force the 
thrown of exception in the same row of code to see how it handles exception.
 







> IoSession doesn't go to corrected state
> ---------------------------------------
>
>                 Key: DIRMINA-1048
>                 URL: https://issues.apache.org/jira/browse/DIRMINA-1048
>             Project: MINA
>          Issue Type: Bug
>    Affects Versions: 2.0.13
>         Environment: windows 7
>            Reporter: eli_user
>            Priority: Critical
>
> In my implementation of IoFilter i don't make override of
> @Override
> public void exceptionCaught(NextFilter nextFilter, IoSession session, 
> Throwable cause) throws Exception {
> }
> After following stacktrace, IoSession doesn't notified on error occured
> java.io.IOException: An established connection was aborted by the software in 
> your host machine
>         at sun.nio.ch.SocketDispatcher.read0(Native Method)
>         at sun.nio.ch.SocketDispatcher.read(Unknown Source)
>         at sun.nio.ch.IOUtil.readIntoNativeBuffer(Unknown Source)
>         at sun.nio.ch.IOUtil.read(Unknown Source)
>         at sun.nio.ch.SocketChannelImpl.read(Unknown Source)
>         at 
> org.apache.mina.transport.socket.nio.NioProcessor.read(NioProcessor.java:312)
>         at 
> org.apache.mina.transport.socket.nio.NioProcessor.read(NioProcessor.java:45)
>         at 
> org.apache.mina.core.polling.AbstractPollingIoProcessor.read(AbstractPollingIoProcessor.java:677)
>         at 
> org.apache.mina.core.polling.AbstractPollingIoProcessor.process(AbstractPollingIoProcessor.java:651)
>         at 
> org.apache.mina.core.polling.AbstractPollingIoProcessor.process(AbstractPollingIoProcessor.java:640)
>         at 
> org.apache.mina.core.polling.AbstractPollingIoProcessor.access$600(AbstractPollingIoProcessor.java:68)
>         at 
> org.apache.mina.core.polling.AbstractPollingIoProcessor$Processor.run(AbstractPollingIoProcessor.java:1097)
>         at 
> org.apache.mina.util.NamePreservingRunnable.run(NamePreservingRunnable.java:64)
>         at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(Unknown 
> Source)
>         at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source)
>         at java.lang.Thread.run(Unknown Source)



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

Reply via email to