: Does anyone know why solr is not respecting keep-alive requests when using
: apache bench?

I've seen this before from people trying to test with "ab", but never 
fully understood it.

There is some combination of using ab (which uses HTTP/1.0 and the non-RFC 
compliant HTTP/1.0 version of optional Keep-Alive) and jetty (which also 
attempts to support the non-RFC compliant HTTP/1.0 version of optional 
Keep-Alive) and chunked responses that come from jetty when you request 
dynamic resources (like solr query URLs) as opposed to static resources 
with a known file size.

I suspect that jetty's best attempt at doing the hooky HTTP/1.0 Keep-Alive 
thing doesn't work with chunked responses -- or maybe ab doesn't actually 
keep the connection alive unless it gets a content-length.

either way, see this previous thread for how you can demonstrate that 
keep-alive works properly using curl...

https://mail-archives.apache.org/mod_mbox/lucene-solr-user/201209.mbox/%3c5048e856.9080...@ea.com%3E


-Hoss

Reply via email to