aboutsummaryrefslogtreecommitdiff
path: root/src/net.c
diff options
context:
space:
mode:
authorBrian Candler <b.candler@pobox.com>2014-12-23 09:38:50 +0000
committerBrian Candler <b.candler@pobox.com>2014-12-23 09:38:50 +0000
commita80368bb7faf6ebbe712e4d60c5a1c5bcf3116ad (patch)
treea048f779131d5de626fca911ddc6b5c3c8f7a8e2 /src/net.c
parentdba611dbe4914f3eb908cec782cd9b5eee1450da (diff)
downloadiperf3-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.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/net.c b/src/net.c
index cc5a7c1..3009dc3 100644
--- a/src/net.c
+++ b/src/net.c
@@ -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: