You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
with a Http server set keep_alive to true, and use ab (-k to set keep-alive) to test
➜ git:(master) ✗ ab -k -v 4 -c 1 -n 1 http://127.0.0.1:8080/bar
This is ApacheBench, Version 2.3 <$Revision: 1706008 $>
Copyright 1996 Adam Twiss, Zeus Technology Ltd, http://www.zeustech.net/
Licensed to The Apache Software Foundation, http://www.apache.org/
Benchmarking 127.0.0.1 (be patient)...INFO: GET header ==
---
GET /bar HTTP/1.0
Connection: Keep-Alive
Host: 127.0.0.1:8080
User-Agent: ApacheBench/2.3
Accept: */*
---
LOG: header received:
HTTP/1.1 406 Not Acceptable
Content-Length: 42
Date: Thu, 30 Nov 2017 04:56:01 GMT
{"error": "invalid digit found in string"}
WARNING: Response code not 2xx (406)
apr_pollset_poll: The timeout specified has expired (70007)
ab will hang, because it is expected to receive the Connection header and check it.
i add a connection header myself in the response to address the problem, but i think hyper should better add the header automatically, or it is supposed to be add by youself as expected?
some ref i found: draft-ietf-http-v11-spec
The text was updated successfully, but these errors were encountered:
Why do you think it's trying to read a Connection header? It's already read past the headers into the body, so more headers are definitely not going to be sent.
with a Http server set keep_alive to true, and use ab (-k to set keep-alive) to test
ab will hang, because it is expected to receive the Connection header and check it.
i add a connection header myself in the response to address the problem, but i think hyper should better add the header automatically, or it is supposed to be add by youself as expected?
some ref i found: draft-ietf-http-v11-spec
The text was updated successfully, but these errors were encountered: