User Activity

  • Posted a comment on discussion General Discussion on Iperf 2

    I've added a '-Q' '--quantum' option to iperf2 in our deployments, enforcing a time limit on client connections, after which they will be terminated by the server. This was necessary to keep our singly-threaded iperf from being tied up by an unresponsive client. I doubt that this patch will be accepted into iperf2, but you're welcome to take it. If merged, please credit Nick Black of Luma, Inc. diff -ur iperf-2.0.9/include/Settings.hpp dankperf-2.0.9/include/Settings.hpp --- iperf-2.0.9/include/Settings.hpp...

  • Posted a comment on ticket #12 on Iperf

    The cause of the nmap -sV memory pressure is the following in Settings_GenerateClientSettings: (client)->mThreads = ntohl(hdr->numThreads); which is then used to allocate client->mThreads items a bit later. With iperf2 2.0.9 and nmap 7.60, this results in a mThreads value of 1929256211 and a rapid OOM. Note that this happens even if --disable-threads is used with configure. On our builds, I've added the following: --- iperf-2.0.9-orig/src/Settings.cpp 2017-08-31 15:33:53.583021939 -0400 +++ iperf-2.0.9/src/Settings.cpp...

  • Posted a comment on discussion General Discussion on Iperf 2

    In at least version 2.0.9 of iperf2 (taken from current git), there's a mismatched new[]/delete. The delete also needs to be a delete[]. This shows up immediately in valgrind when run with memcheck. The fix is pretty simple: @@ -586,7 +589,7 @@ mExtSettings->mBindPort = atoi(results); } } - delete parsedopts; + delete[] parsedopts; if (mExtSettings->mLocalhost == NULL) { mExtSettings->mLocalhost = new char[ strlen( optarg ) + 1 ]; strcpy( mExtSettings->mLocalhost, optarg ); If this patch is included,...

View All

Personal Data

Username:
nickblack
Joined:
2011-10-17 11:53:00

Projects

This is a list of open source software projects that nick black is associated with:

  • Project Logo RAPTORIAL Rewrite of APT with focus on parallelism Last Updated:
  • Project Logo SprezzOS SprezzOS -- Linux for the discerning power user. Last Updated:
  • Project Logo growlight Storage management and system installation tool Last Updated:

Personal Tools