Hi All,

I just downloaded iperf 2.0.4 and compiled it under ubuntu.  Using the -n
option fails miserably  under TCP ( tried -n 1K 10K 500K ).

I tracked down the problem.

The problem is this comparison in Client.cpp:

 while ( ! (sInterupted  ||
                   (!mMode_Time  &&  0 >= mSettings->mAmount)) && canRead );


mSettings->mAmount is of type max_size_t

max_size_t is an  UNSIGNED type in headers.h ( and thus will not be less
than 0 )

I changed the definition of max_size_t as follows:

typedef int64_t max_size_t;

Recompile, and run..  -n appears to work right.

If anyone finds a problem with this please shout.  Otherwise..

Cheers,

Matt
-------------------------------------------------------------------------
This SF.net email is sponsored by the 2008 JavaOne(SM) Conference 
Don't miss this year's exciting event. There's still time to save $100. 
Use priority code J8TL2D2. 
http://ad.doubleclick.net/clk;198757673;13503038;p?http://java.sun.com/javaone
_______________________________________________
Iperf-users mailing list
Iperf-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/iperf-users

Reply via email to