-
Notifications
You must be signed in to change notification settings - Fork 0
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Udp without control socket #22
base: master
Are you sure you want to change the base?
Conversation
@@ -295,6 +295,8 @@ struct iperf_test | |||
char *remote_congestion_used; /* what the other side used */ | |||
char *pidfile; /* -P option */ | |||
|
|||
unsigned int delay; /* --delay server delay*/ |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Why this is here? thats separate feature.
@@ -330,6 +332,7 @@ struct iperf_test | |||
int repeating_payload; /* --repeating-payload */ | |||
int multithread; /* --multithread option */ | |||
int thread_affinity; /* --thread-affinity option. Use only with --multithread option */ | |||
int force_udp; /* --force-udp option - witnout answer*/ |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
bad name. suggest --no-server (int no_server_udp
)
if ((test->ctrl_sck < 0)) { | ||
i_errno = IECONNECT; | ||
return -1; | ||
} | ||
|
||
if (Nwrite(test->ctrl_sck, test->cookie, COOKIE_SIZE, Ptcp) < 0) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
you should scan on all the code and exclude ctrl_sck logic if !ctrl_sck
#if defined(HAVE_SO_MAX_PACING_RATE) | ||
" --fq-rate #[KMG] enable fair-queuing based socket pacing in\n" | ||
" bits/sec (Linux only)\n" | ||
" bits/sec (Linux only)\n" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
useless spacing changes
@WerWebWer plz fix the comments. And clarify why not stats output is happening. |
Allow udp to be generated even if no server available.