Using both keepalive requests and timeout

Valentin V. Bartenev vbart at nginx.com
Thu Nov 20 16:37:23 UTC 2014


On Thursday 20 November 2014 20:40:30 Das, Jagannath wrote:
> I tried with 10s, 30s, 40s .

But you have set 2s timeout between requests in httperf,
so how do you expect it to work?

It's a timeout for inactive keep-alive connection.

If you set keepalive_timeout 10s; then a connection
will be closed after 10 seconds of inactivity, but
httperf with the --wsess=1,102,2 parameters sends
new requests every 2 seconds.

See also: http://tools.ietf.org/html/rfc7230#section-6.5

  wbr, Valentin V. Bartenev



More information about the nginx mailing list