curl / Mailing Lists / curl-library / Single Mail

curl-library

Re: Too many connections in TIME_WAIT state

From: Vipin P R via curl-library <curl-library_at_cool.haxx.se>
Date: Wed, 23 Jan 2019 09:42:15 +0530

AB doesn't use keepalives by default
Cutl does, because it uses HTTP1.1

On Mon, 21 Jan 2019 at 8:58 PM, Daniel Stenberg <daniel_at_haxx.se> wrote:

> 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-23