curl / Mailing Lists / curl-library / Single Mail

curl-library

Re: Too many connections in TIME_WAIT state

From: Daniel Stenberg via curl-library <curl-library_at_cool.haxx.se>
Date: Mon, 21 Jan 2019 16:28:15 +0100 (CET)

On Mon, 21 Jan 2019, Vipin P R wrote:

> Thank you. I found out that Apache Bench uses HTTP1.0 which doesn't use
> connection persistence. Hence no TIME_WAIT connections. Thus the server
> sends the FIN. In case of Libcurl and curl, we use HTTP1.1 where we use
> KEEPALIVES.

1. That doesn't explain why the connections are closed though...

2. HTTP/1.1 doesn't need any "KEEPALIVES" (as in special headers) normally
since it does persistent connections by default.

-- 
  / daniel.haxx.se
-------------------------------------------------------------------
Unsubscribe: https://cool.haxx.se/list/listinfo/curl-library
Etiquette:   https://curl.haxx.se/mail/etiquette.html
Received on 2019-01-21