You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@mina.apache.org by Meeraj Kunnumpurath <mk...@googlemail.com> on 2009/03/09 23:21:55 UTC

Connection reset by peer

Hi,

I have been using Mina for an embedded FTP to HTTP protocol translator and
it has been working great. We have noticed intermittent connection reset
errors occuring three or four times during the day. I was wondering anyone
else has noticed this issue before ?RE: Intermittent FTP issue

java.io.IOException: Connection reset by peer
        at sun.nio.ch.FileDispatcher.read0(Native Method)
        at sun.nio.ch.SocketDispatcher.read(SocketDispatcher.java:21)
        at sun.nio.ch.IOUtil.readIntoNativeBuffer(IOUtil.java:233)
        at sun.nio.ch.IOUtil.read(IOUtil.java:206)
        at sun.nio.ch.SocketChannelImpl.read(SocketChannelImpl.java:207)
        at
org.apache.mina.transport.socket.nio.NioProcessor.read(NioProcessor.java:156)

        at
org.apache.mina.transport.socket.nio.NioProcessor.read(NioProcessor.java:41)

        at
org.apache.mina.common.AbstractPollingIoProcessor.read(AbstractPollingIoProcessor.java:408)

        at
org.apache.mina.common.AbstractPollingIoProcessor.process(AbstractPollingIoProcessor.java:387)

        at
org.apache.mina.common.AbstractPollingIoProcessor.process(AbstractPollingIoProcessor.java:379)

        at
org.apache.mina.common.AbstractPollingIoProcessor.access$400(AbstractPollingIoProcessor.java:43)

        at
org.apache.mina.common.AbstractPollingIoProcessor$Worker.run(AbstractPollingIoProcessor.java:678)

        at
org.apache.mina.util.NamePreservingRunnable.run(NamePreservingRunnable.java:51)

        at
java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:650)

        at
java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:675)

        at java.lang.Thread.run(Thread.java:595)


Thanks

Meeraj

Re: Connection reset by peer

Posted by Emmanuel Lecharny <el...@apache.org>.
Meeraj Kunnumpurath wrote:
> Hi,
>
> I have been using Mina for an embedded FTP to HTTP protocol translator and
> it has been working great. We have noticed intermittent connection reset
> errors occuring three or four times during the day. I was wondering anyone
> else has noticed this issue before ?RE: Intermittent FTP issue
>
> java.io.IOException: Connection reset by peer
>   

Your client has probably closed the socket you are trying to read. You 
basically have _no_ guarantee that the socket you want to read from or 
write to is still available at the very moment you do the operation. 
This is something your applicatio, has to deal with.

-- 
--
cordialement, regards,
Emmanuel Lécharny
www.iktek.com
directory.apache.org