fixes for -T mode
This commit is contained in:
parent
01a5081d51
commit
f4e1c1d4a4
@ -256,7 +256,9 @@ done:
|
|||||||
printf("Test Complete. \n\n");
|
printf("Test Complete. \n\n");
|
||||||
|
|
||||||
/* reset cookie when client is finished */
|
/* reset cookie when client is finished */
|
||||||
memset(test->streams->settings->cookie, '\0', COOKIE_SIZE);
|
/* XXX: which cookie to reset, and why is it stored to 2 places? */
|
||||||
|
//memset(test->streams->settings->cookie, '\0', COOKIE_SIZE);
|
||||||
|
memset(test->default_settings->cookie, '\0', COOKIE_SIZE);
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -42,8 +42,8 @@ get_tcpinfo(struct iperf_test *test, struct iperf_interval_results *rp)
|
|||||||
perror("getsockopt");
|
perror("getsockopt");
|
||||||
}
|
}
|
||||||
/* for debugging */
|
/* for debugging */
|
||||||
printf(" got TCP_INFO: %d, %d, %d, %d\n", rp->tcpInfo.tcpi_snd_cwnd,
|
//printf(" got TCP_INFO: %d, %d, %d, %d\n", rp->tcpInfo.tcpi_snd_cwnd,
|
||||||
rp->tcpInfo.tcpi_snd_ssthresh, rp->tcpInfo.tcpi_rcv_space, rp->tcpInfo.tcpi_rtt);
|
// rp->tcpInfo.tcpi_snd_ssthresh, rp->tcpInfo.tcpi_rcv_space, rp->tcpInfo.tcpi_rtt);
|
||||||
return;
|
return;
|
||||||
#else
|
#else
|
||||||
return;
|
return;
|
||||||
|
@ -77,6 +77,11 @@ new_timer(time_t sec, suseconds_t usec)
|
|||||||
{
|
{
|
||||||
struct timer *tp;
|
struct timer *tp;
|
||||||
tp = (struct timer *) malloc(sizeof(struct timer));
|
tp = (struct timer *) malloc(sizeof(struct timer));
|
||||||
|
if (tp == NULL)
|
||||||
|
{
|
||||||
|
perror("malloc");
|
||||||
|
return NULL;
|
||||||
|
}
|
||||||
|
|
||||||
if (gettimeofday(&tp->begin, NULL) < 0)
|
if (gettimeofday(&tp->begin, NULL) < 0)
|
||||||
{
|
{
|
||||||
|
Loading…
Reference in New Issue
Block a user