Hi Philipp, On 4/19/07, Philipp <[EMAIL PROTECTED]> wrote:
hi there,sorry if this was up before, but i could not find it in the archive. we use mina 0.8.4 (jdk 1.5.0) for a kind of http server. we realize http keep-alive connections, so we do not close the connection after messageSent event, but after a while on the sessionIdle event in a ProtocolHandlerAdapter Implementation. everything works fine for firefox and opera. but when the internet explorer 7 client close the connection before the server does, we get the following exeption: 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:200) at sun.nio.ch.SocketChannelImpl.read(SocketChannelImpl.java:207) at org.apache.mina.io.socket.SocketIoProcessor.read(SocketIoProcessor.java:267) at org.apache.mina.io.socket.SocketIoProcessor.processSessions(SocketIoProcessor.java:240) at org.apache.mina.io.socket.SocketIoProcessor.access$200(SocketIoProcessor.java:43) at org.apache.mina.io.socket.SocketIoProcessor$Worker.run(SocketIoProcessor.java:541) it seems the internet explorer triggers the SocketChannel somehow, when closing the socket! it seems that the exception has no other effect. can anyone help? what are we doing wrong. should we just ignore the exception?
Yep, you can simply ignore the exception. It means the remote peer (IE in this case) closed the connection. Trustin -- what we call human nature is actually human habit -- http://gleamynode.net/ -- PGP Key ID: 0x0255ECA6
