-
Notifications
You must be signed in to change notification settings - Fork 3k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Can not work with Jetty 7, 8, 9 when use -H 'Connection: Close' for non-keepAlive benchmark #118
Comments
Hi @xfeep, is Jetty returning an error response when you hit 'http://127.0.0.1:8082'? |
Hi @wg Thanks for your quick reply. Here is curl 's result curl -v -H 'Connection: Close' http://127.0.0.1:8082
* About to connect() to 127.0.0.1 port 8082 (#0)
* Trying 127.0.0.1...
* Connected to 127.0.0.1 (127.0.0.1) port 8082 (#0)
> GET / HTTP/1.1
> User-Agent: curl/7.29.0
> Host: 127.0.0.1:8082
> Accept: */*
> Connection: Close
>
< HTTP/1.1 200 OK
< Date: Sun, 25 Jan 2015 02:29:33 GMT
< Content-Type: text/html;charset=ISO-8859-1
< Connection: close
< Server: Jetty(7.6.13.v20130916)
> .........1K size of content omited........... If we remove the |
Thanks for the quick response! That's odd, I can't reproduce the issue with a 200 response. Try this patch anyway:
|
Thanks for your patch! ]$ wrk -c 1 -t 1 -d 10s -H 'Connection: Close' http://127.0.0.1:8082
Running 10s test @ http://127.0.0.1:8082
1 threads and 1 connections
Thread Stats Avg Stdev Max +/- Stdev
Latency 116.81us 283.83us 10.77ms 99.88%
Req/Sec 4.62k 373.14 5.33k 68.42%
43311 requests in 10.00s, 54.32MB read
Requests/sec: 4331.17
Transfer/sec: 5.43MB |
But both ab and curl are OK.
The text was updated successfully, but these errors were encountered: