On 9/29/2013 7:22 PM, William Bell wrote:
> How do I set TCP_NODELAY on the http sockets for Jetty in SOLR 4?
The client usually makes that decision, not the server. This parameter
is turned on by default for recent HttpClient versions, the library used
by SolrJ. Even the JETTY issue uncovered b
I dunno, but this makes it look as if this may already be taken care of:
http://jira.codehaus.org/browse/JETTY-1196
On 9/29/2013 9:22 PM, William Bell wrote:
How do I set TCP_NODELAY on the http sockets for Jetty in SOLR 4?
Is there an option in jetty.xml ?
/* Create new stream socket */
soc
I don't keep up with this list well enough to know whether anyone else
answered. I don't know how to do it in jetty.xml, but you can certainly
tweak the code. java.net.Socket has a method setTcpNoDelay() that
corresponds with the standard Unix system calls.
Long-time past, my suggestion of this
How do I set TCP_NODELAY on the http sockets for Jetty in SOLR 4?
Is there an option in jetty.xml ?
/* Create new stream socket */
sock = *socket*( AF_INET, SOCK_STREAM, 0 );
/* Disable the Nagle (TCP No Delay) algorithm */
flag = 1;
ret = *setsockopt*( sock, IPPROTO_TCP, TCP_NODELAY, (char