Some extra information. If I use curl and force it to use HTTP 1.0, it is more visible that Solr doesn't allow persistent connections:

$ curl -v -0 'http://localhost:8983/solr/select?q=*:*' -H'Connection: Keep-Alive'* About to connect() to localhost port 8983 (#0)
*   Trying ::1... connected
> GET /solr/select?q=*:* HTTP/1.0
> User-Agent: curl/7.22.0 (x86_64-pc-linux-gnu) libcurl/7.22.0 OpenSSL/1.0.1 zlib/1.2.3.4 libidn/1.23 librtmp/2.3
> Host: localhost:8983
> Accept: */*
> Connection: Keep-Alive
>
< HTTP/1.1 200 OK
< Content-Type: application/xml; charset=UTF-8
* no chunk, no close, no size. Assume close to signal end
<
<?xml version="1.0" encoding="UTF-8"?>
<response>
...removed the rest of the response body...

-- Aleksey

On 12-09-05 03:54 PM, Aleksey Vorona wrote:
Hi,

Running example Solr from the 3.6.1 distribution I can not make it to
keep persistent HTTP connections:

$ ab -c 1 -n 100 -k 'http://localhost:8983/solr/select?q=*:*' | grep
Keep-Alive
Keep-Alive requests:    0

What should I change to fix that?

P.S. We have the same issue in production with Jetty 7, but I thought it
would be better to ask about Solr example, since it is easier for anyone
to reproduce the issue.

-- Aleksey


Reply via email to