summaryrefslogtreecommitdiff
path: root/ace
diff options
context:
space:
mode:
authorOssama Othman <ossama-othman@users.noreply.github.com>2000-03-20 06:49:06 +0000
committerOssama Othman <ossama-othman@users.noreply.github.com>2000-03-20 06:49:06 +0000
commit25c9abccd7003421cef890e48c2b92f3c036fa0a (patch)
treeacec41be551b088c59a7364aff2f64de2b1d5200 /ace
parentc916857be438105b4aa990b5ea9a0b6e25b97f46 (diff)
downloadATCD-25c9abccd7003421cef890e48c2b92f3c036fa0a.tar.gz
ChangeLogTag:Sun Mar 19 22:11:47 2000 Ossama Othman <ossama@uci.edu>
Diffstat (limited to 'ace')
-rw-r--r--ace/ACE.cpp42
1 files changed, 30 insertions, 12 deletions
diff --git a/ace/ACE.cpp b/ace/ACE.cpp
index e55960119b8..e99270c7b19 100644
--- a/ace/ACE.cpp
+++ b/ace/ACE.cpp
@@ -1297,7 +1297,10 @@ ACE::recv_n_i (ACE_HANDLE handle,
{
// If blocked, try again.
if (errno == EWOULDBLOCK)
- n = 0;
+ {
+ n = 0;
+ continue;
+ }
// No timeouts in this version.
@@ -1305,7 +1308,7 @@ ACE::recv_n_i (ACE_HANDLE handle,
return -1;
}
else if (n == 0)
- return 0;
+ break;
}
return bytes_transferred;
@@ -1384,7 +1387,10 @@ ACE::recv_n_i (ACE_HANDLE handle,
{
// If blocked, try again.
if (errno == EWOULDBLOCK)
- n = 0;
+ {
+ n = 0;
+ continue;
+ }
// No timeouts in this version.
@@ -1392,7 +1398,7 @@ ACE::recv_n_i (ACE_HANDLE handle,
return -1;
}
else if (n == 0)
- return 0;
+ break;
}
return bytes_transferred;
@@ -1533,7 +1539,10 @@ ACE::recvv_n_i (ACE_HANDLE handle,
{
// If blocked, try again.
if (errno == EWOULDBLOCK)
- n = 0;
+ {
+ n = 0;
+ continue;
+ }
// No timeouts in this version.
@@ -1541,7 +1550,7 @@ ACE::recvv_n_i (ACE_HANDLE handle,
return -1;
}
else if (n == 0)
- return 0;
+ break;
for (bytes_transferred += n;
s < iovcnt
@@ -1869,7 +1878,10 @@ ACE::send_n_i (ACE_HANDLE handle,
{
// If blocked, try again.
if (errno == EWOULDBLOCK)
- n = 0;
+ {
+ n = 0;
+ continue;
+ }
// No timeouts in this version.
@@ -1877,7 +1889,7 @@ ACE::send_n_i (ACE_HANDLE handle,
return -1;
}
else if (n == 0)
- return 0;
+ break;
}
return bytes_transferred;
@@ -1956,7 +1968,10 @@ ACE::send_n_i (ACE_HANDLE handle,
{
// If blocked, try again.
if (errno == EWOULDBLOCK)
- n = 0;
+ {
+ n = 0;
+ continue;
+ }
// No timeouts in this version.
@@ -1964,7 +1979,7 @@ ACE::send_n_i (ACE_HANDLE handle,
return -1;
}
else if (n == 0)
- return 0;
+ break;
}
return bytes_transferred;
@@ -2106,7 +2121,10 @@ ACE::sendv_n_i (ACE_HANDLE handle,
{
// If blocked, try again.
if (errno == EWOULDBLOCK)
- n = 0;
+ {
+ n = 0;
+ continue;
+ }
// No timeouts in this version.
@@ -2114,7 +2132,7 @@ ACE::sendv_n_i (ACE_HANDLE handle,
return -1;
}
else if (n == 0)
- return 0;
+ break;
for (bytes_transferred += n;
s < iovcnt