Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 6 Apr 2004 09:56:32 -0700
From:      Mike Hunter <mhunter@ack.Berkeley.EDU>
To:        freebsd-ports@freebsd.org
Subject:   Iperf doesn't hang up with clients, breaks perl's STDIN...?
Message-ID:  <20040406165632.GA20719@ack.Berkeley.EDU>

next in thread | raw e-mail | index | archive | help
Easily reproducible for me is that an iperf server launched via "iperf -s -D"
never seems to hangup with remote clients...the 10 seconds pass and the
client just sits there.

There's an interesting related problem I'm having with iperf and perl.
I have a perl fragment that looks like this:

my $input = <STDIN>;
if ($input =~ /yes/i)
{
	system("iperf -s -D >/dev/null");
}
$input = <STDIN>;
die "wtf!!!" unless defined $input;

It dies with "wtf!!!".  Somehow running iperf is breaking my perl script's
connection to its own STDIN.

Not sure if you read, but in the move to 5 the number of /dev/fd's was
reduced from 64 to 3...I have a theory that iperf is trying to do
something weird with its file descriptors and that's what's causing the
problem.

I'd appreciate any help you can give or any suggestions where else to ask
around.

As an aside, do you know the status of the iperf project?  Their web
paged looked a bit long in the tooth to me.

Thanks for your help,

Mike



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20040406165632.GA20719>