cURL / Mailing Lists / curl-library / Single Mail


Re: Many CLOSE_WAIT when handling lots of URLs

From: Daniel Stenberg <>
Date: Mon, 6 Jan 2014 23:46:06 +0100 (CET)

On Mon, 6 Jan 2014, Shao, Shuchao wrote:

> After that, I worked on writing a program to reproduce it. The attached
> program is based on the official example hiperfifo.c. After compiling it
> successfully, running the program for about 10-20 mins, will see many
> CLOSE_WAIT on the machine. This program is to GET 200 urls from a 10000 urls
> list each time.

Just to make something clear:

Are you then saying that the original unmodified hiperfifo.c doesn't give you
this amount of CLOSE_WAIT connections?

Because if you do, the diff between your version and the original version
certainly should have some useful clues, right?

List admin:
Received on 2014-01-06