mirror of
https://github.com/lwip-tcpip/lwip.git
synced 2024-10-01 12:24:22 +00:00
Fix bug #64637 ("iperf -n 1000 -r" does not work)
This commit is contained in:
parent
4e6dd9c576
commit
3792075baf
@ -302,7 +302,7 @@ lwiperf_tcp_client_send_more(lwiperf_state_tcp_t *conn)
|
|||||||
/* this session is byte-limited */
|
/* this session is byte-limited */
|
||||||
u32_t amount_bytes = lwip_htonl(conn->settings.amount);
|
u32_t amount_bytes = lwip_htonl(conn->settings.amount);
|
||||||
/* @todo: this can send up to 1*MSS more than requested... */
|
/* @todo: this can send up to 1*MSS more than requested... */
|
||||||
if (amount_bytes >= conn->bytes_transferred) {
|
if (conn->bytes_transferred >= amount_bytes) {
|
||||||
/* all requested bytes transferred -> close the connection */
|
/* all requested bytes transferred -> close the connection */
|
||||||
lwiperf_tcp_close(conn, LWIPERF_TCP_DONE_CLIENT);
|
lwiperf_tcp_close(conn, LWIPERF_TCP_DONE_CLIENT);
|
||||||
return ERR_OK;
|
return ERR_OK;
|
||||||
|
Loading…
Reference in New Issue
Block a user