On 25/06/2015 06:59, Ganesh Bms wrote:
> Hi,
> 
> As per tomcat's performance tuning doc, 'tcpNoDelay' can be
> enabled/disabled at connector level.
> Is there a programmatic way to set 'tcpNoDelay' to true for web socket
> connections ? I am using tomcat's proprietary web socket APIs in my
> application.

Sorry, no.

> I have gone though the API documentation of tomcat's proprietary web socket
> implementation, I didn't see any API which allows application to override
> the 'tcpNoDelay' value.
> 
> As per doc for "writeTextMessage(CharBuffer msgCb)" of 'WsOutbound', for
> each write, tomcat flushes the socket buffer and sends the new frame with
> the buffer passed. Does that mean, flushing of socket buffer gives the same
> effect of disabling naggle's algorithm ?

I don't know. The Javadoc only guarantees that the bytes will be passed
to the OS when flush() is called. What happens after that is up to the OS.

You'll need to do some testing on your system (possibly with Wireshark)
to see exactly what is going on.

Mark


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to