cURL / Mailing Lists / curl-library / Single Mail

curl-library

Re: ftp testserver hung

From: Daniel Stenberg <daniel_at_haxx.se>
Date: Sun, 24 Jun 2007 22:21:38 +0200 (CEST)

On Fri, 22 Jun 2007, Guenter Knauf wrote:

> this is my idea - not sure if it really works because I would have to wait
> for another hung (which happened today again, argh!):
>
> --- testcurl.pl.orig Sun Apr 01 15:59:50 2007
> +++ testcurl.pl Fri Jun 22 17:26:26 2007
> @@ -200,6 +200,11 @@
> sub mydie($){
> my $text=$_[0];
> logit "$text";
> + # check if we have test servers hanging around...
> + while (<tests/.*.pid>) {
> + logit "trying to kill $_ process";
> + system("kill -kill < $_");
> + }

I would say that what's interesting here is also that you try to note which
servers this actually had to kill since it'll be useful as feedback to know
what parts we should fix to kill the servers "properly".

Also note that perl has a kill function, no need to use system() for that. And
isn't the '<' letter in the kill line just wrong ?

[from your second mail]

> seems that such would only partly solve the issue; if you look at today's
> autobuilds then you can see that even after I killed manually the hung
> processes the ports still remain unusable....

Isn't that just the sockets being in WAIT_CLOSE for a while?

-- 
  Commercial curl and libcurl Technical Support: http://haxx.se/curl.html
Received on 2007-06-24