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?
thanks in advance for any help