users@grizzly.java.net

Re: Parallel writes revisited: bug or me?

From: Ryan Lubke <ryan.lubke_at_oracle.com>
Date: Mon, 06 Feb 2012 14:00:31 -0800

Further details...

<snip>
Presumably there's some sort of bounded write queue.
</snip>

In addition to the PushBackHandler, there are a couple of ways to
configure the size of the queue.

See: AsyncQueueWriter.setMaxPendingBytesPerConnection(int) [1]

By default, the queue will be limited to four times the size of the
socket write buffer size.

This value may be initially set via
TCPNIOTransportBuilder.setMaxAsyncWriteQueueSizeInBytes(int) [2].



[1]
http://java.net/projects/grizzly/sources/git/content/modules/grizzly/src/main/java/org/glassfish/grizzly/asyncqueue/AsyncQueueWriter.java?rev=15de8fef0a4f138636e222f861ae6cb1fcf111f9

[2]
http://java.net/projects/grizzly/sources/git/content/modules/grizzly/src/main/java/org/glassfish/grizzly/nio/transport/TCPNIOTransportBuilder.java?rev=15de8fef0a4f138636e222f861ae6cb1fcf111f9