Salut,
Bill Simons wrote:
> I'm sending a large amount of data from my server to a test client
> using the OutputWriter.flushChannel method. My client was never
> receiving the data and I was getting a java.io.IOException: Client
> disconnected exception on the server. I found this issue
> https://grizzly.dev.java.net/issues/show_bug.cgi?id=597 and thought it
> looked very similar to my situation. I upgraded to the
> 1.9.16-SNAPSHOT version of grizzly in order to get the fix and am now
> seeing the following:
>
> java.io.IOException: Client is busy or timed out
> at com.sun.grizzly.util.OutputWriter.flushChannel(OutputWriter.java:128)
> at com.sun.grizzly.util.OutputWriter.flushChannel(OutputWriter.java:73)
>
> What could be the cause of this?
It means the client is not reading the response fast enough. By default,
it times out after 30 seconds. Which module are you using? framework or
http? The default value can be changed by doing:
OutputWriter.setDefaultWriteTimeout( timeout in milleseconds ).
Try increasing the value to see if that help.
Thanks!
-- Jeanfrancois
>
> Bill
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe_at_grizzly.dev.java.net
> For additional commands, e-mail: users-help_at_grizzly.dev.java.net
>