curl-library
Re: Too many connections in TIME_WAIT state
Date: Mon, 21 Jan 2019 20:54:40 +0530
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.
On Mon, Jan 21, 2019 at 12:48 PM Daniel Stenberg <daniel_at_haxx.se> wrote:
> On Mon, 21 Jan 2019, Vipin P R wrote:
>
> > I have tried with curl to the same URL. I can see that the client is
> the
> > one initiating the FIN. In case of AB, the client always waits for the
> > server to initiate the FIN. Is there any way to change this behaviour in
> > libcurl or setsockopt().
>
> It depends entirely on why curl decides to close the connection.
>
> --
>
> / 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