thanks guys. I saw this other post with curl and verified it working. I've also used apache bench for a bunch of stuff and keep-alive works fine with things like Java netty.io servers ... strange that tomcat isn't respecting the http protocol or headers....
There must be a bug in this version of tomcat being used. On Tue, Sep 10, 2013 at 6:23 PM, Chris Hostetter <hossman_luc...@fucit.org>wrote: > > : 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 >