diff options
author | Brian Candler <b.candler@pobox.com> | 2014-12-23 09:38:50 +0000 |
---|---|---|
committer | Brian Candler <b.candler@pobox.com> | 2014-12-23 09:38:50 +0000 |
commit | a80368bb7faf6ebbe712e4d60c5a1c5bcf3116ad (patch) | |
tree | a048f779131d5de626fca911ddc6b5c3c8f7a8e2 /src/net.c | |
parent | dba611dbe4914f3eb908cec782cd9b5eee1450da (diff) | |
download | iperf3-a80368bb7faf6ebbe712e4d60c5a1c5bcf3116ad.tar.gz |
Drop out of multisend loop if none of the streams are accepting data
Diffstat (limited to 'src/net.c')
-rw-r--r-- | src/net.c | 2 |
1 files changed, 2 insertions, 0 deletions
@@ -324,6 +324,8 @@ Nsendfile(int fromfd, int tofd, const char *buf, size_t count) switch (errno) { case EINTR: case EAGAIN: + if (count == nleft) + return NET_SOFTERROR; return count - nleft; case ENOBUFS: |