Is there a way I can set the send buffer size for the HTTP listener/response sockets created by Tomcat or Jetty? (ie. SO_SNDBUF). Apologies if I'm getting the terminology wrong.
Update:
After googling around and with @Joakim's help I found this:
http://wiki.eclipse.org/Jetty/Howto/Configure_Connectors
and
Slow transfers in Jetty with chunked transfer encoding at certain buffer size
The question then is are the "buffer size" referred by the Jetty.xml config as well as the HttpServletResponse.setBufferSize() the same as the socket "send buffer size"?
Update 2:
Reading more I think neither affect the socket buffer size and its just another buffer the servlet container uses before sending it over to the Socket.