diff options
author | Juergen Beisert <j.beisert@pengutronix.de> | 2009-03-30 11:26:10 +0000 |
---|---|---|
committer | Juergen Beisert <j.beisert@pengutronix.de> | 2009-03-30 11:26:10 +0000 |
commit | 1379dac6f9ab31f3e067f0e99a2480d1b543d14b (patch) | |
tree | 6ed635c2b049a85e3ccc3cdc0842e5f3dc72eeee /patches | |
parent | d1927713c67de8eba1427ad7da508c5a14673ad9 (diff) | |
download | ptxdist-1379dac6f9ab31f3e067f0e99a2480d1b543d14b.tar.gz ptxdist-1379dac6f9ab31f3e067f0e99a2480d1b543d14b.tar.xz |
* iperf: Fix "one run only" bug
git-svn-id: https://svn.pengutronix.de/svn/ptxdist/trunks/ptxdist-trunk@10181 33e552b5-05e3-0310-8538-816dae2090ed
Diffstat (limited to 'patches')
-rw-r--r-- | patches/iperf-2.0.4/generic/fix_early_termination.diff | 42 | ||||
-rw-r--r-- | patches/iperf-2.0.4/generic/series | 1 |
2 files changed, 43 insertions, 0 deletions
diff --git a/patches/iperf-2.0.4/generic/fix_early_termination.diff b/patches/iperf-2.0.4/generic/fix_early_termination.diff new file mode 100644 index 000000000..32082f6b3 --- /dev/null +++ b/patches/iperf-2.0.4/generic/fix_early_termination.diff @@ -0,0 +1,42 @@ +iperf version 2.0.4 running in server mode exits when a client connects +using the -d (duplex) flag. + +To reproduce: On machine foo, run server: + +[somlo@foo]$ iperf -s + +on machine bar, run client in duplex mode: + +[somlo@bar]$ iperf -c foo -d + + +What happens: At the end of the test, the iperf process on machine foo exits. + +What *should* happen: At the end of the test, the iperf process on machine +should keep running, listening for new connections. + +Patch form L. Gabriel Somlo on the iperf maillist 2009-01-21 + +--- + src/Client.cpp | 8 ++++---- + 1 file changed, 4 insertions(+), 4 deletions(-) + +Index: src/Client.cpp +=================================================================== +--- src/Client.cpp.orig ++++ src/Client.cpp +@@ -207,10 +207,10 @@ void Client::Run( void ) { + char* readAt = mBuf; + + #if HAVE_THREAD +- if ( !isUDP( mSettings ) ) { +- RunTCP(); +- return; +- } ++// if ( !isUDP( mSettings ) ) { ++// RunTCP(); ++// return; ++// } + #endif + + // Indicates if the stream is readable diff --git a/patches/iperf-2.0.4/generic/series b/patches/iperf-2.0.4/generic/series new file mode 100644 index 000000000..c490ac05d --- /dev/null +++ b/patches/iperf-2.0.4/generic/series @@ -0,0 +1 @@ +fix_early_termination.diff -p0 |