lucene-solr-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From William Bell <billnb...@gmail.com>
Subject Nagle's Algorithm
Date Mon, 30 Sep 2013 01:22:53 GMT
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 *)&flag,
sizeof(flag) );




-- 
Bill Bell
billnbell@gmail.com
cell 720-256-8076

Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message