Package: iperf
Version: iperf_2.0.4-3

When iperf encounters a fatal error when connecting to a port, such as
the port being closed on the remote side, it simply warns; since this
is an unrecoverable error, it should die.

$ iperf -v
iperf version 2.0.4+svnr43 (7 Apr 2008) pthreads
$ iperf -c 127.0.0.1
connect failed: Connection refused
write1 failed: Broken pipe
write2 failed: Broken pipe
------------------------------------------------------------
Client connecting to 127.0.0.1, TCP port 5001
TCP window size: 16.0 KByte (default)
------------------------------------------------------------
[  3] local 0.0.0.0 port 37718 connected with 127.0.0.1 port 5001
[ ID] Interval       Transfer     Bandwidth
[  3]  0.0- 0.0 sec  0.00 Bytes  0.00 bits/sec


This is with the iperf_2.0.4-3_i386.deb package.

The attached patch resolves the issue.

Attachment: iperf-die-on-connect-fail.patch
Description: Binary data

Reply via email to