curl-library
Re: Many CLOSE_WAIT when handling lots of URLs
From: Daniel Stenberg <daniel_at_haxx.se>
Date: Mon, 6 Jan 2014 23:46:06 +0100 (CET)
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?
-- / daniel.haxx.se ------------------------------------------------------------------- List admin: http://cool.haxx.se/list/listinfo/curl-library Etiquette: http://curl.haxx.se/mail/etiquette.htmlReceived on 2014-01-06