users@grizzly.java.net

Re: java.io.IOException: An existing connection was forcibly closed by the remote host

From: Ken--_at_newsgroupstats.hk <dragonken_at_gmail.com>
Date: Wed, 30 Jul 2008 18:14:27 -0700 (PDT)

Thanks for your quick response.

Yes, you are correct.

Actually the original problem is, i did add filters but it somehow stop
reading / stop parsing / parsing too slow resulting the exception in client
side.



John ROM wrote:
>
>
>> I got this exception but i hv no idea about the root cause.
>>
>> Please help:
>>
>> http://www.nabble.com/file/p18739932/TestServer.java TestServer.java
>> http://www.nabble.com/file/p18739932/MyClient.java MyClient.java
>>
>
> In TestServer.java you need to add Filters to the ProtocolChain. Otherwise
> a Protocol chain does not make any sense!? Propably some grizzly timeout
> or maybe a full
> tcp buffer forces the exception
> Many Greetings
> John
>
>
>
>
>
>
>> output:
>>
>> 13000
>> 14000
>> 15000
>> Exception in execute ... java.io.IOException: An existing connection was
>> forcibly closed by the remote host
>> count = 15361
>> java.io.IOException: An existing connection was forcibly closed by the
>> remote host
>> at sun.nio.ch.SocketDispatcher.write0(Native Method)
>> at sun.nio.ch.SocketDispatcher.write(SocketDispatcher.java:33)
>> at sun.nio.ch.IOUtil.writeFromNativeBuffer(IOUtil.java:104)
>> at sun.nio.ch.IOUtil.write(IOUtil.java:75)
>> at sun.nio.ch.SocketChannelImpl.write(SocketChannelImpl.java:334)
>> at
>> com.sun.grizzly.TCPConnectorHandler.write(TCPConnectorHandler.java:424)
>> at test.MyClient.execute(MyClient.java:75)
>> at test.MyClient.main(MyClient.java:36)
>> program exit!
>>
>> --
>> View this message in context:
>> http://www.nabble.com/java.io.IOException%3A-An-existing-connection-was-forcibly-closed-by-the-remote-host-tp18739932p18739932.html
>> Sent from the Grizzly - Users mailing list archive at Nabble.com.
>
> --
> Ist Ihr Browser Vista-kompatibel? Jetzt die neuesten
> Browser-Versionen downloaden: http://www.gmx.net/de/go/browser
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe_at_grizzly.dev.java.net
> For additional commands, e-mail: users-help_at_grizzly.dev.java.net
>
>
>

-- 
View this message in context: http://www.nabble.com/java.io.IOException%3A-An-existing-connection-was-forcibly-closed-by-the-remote-host-tp18739932p18745961.html
Sent from the Grizzly - Users mailing list archive at Nabble.com.