diff options
author | rbb <rbb@13f79535-47bb-0310-9956-ffa450edef68> | 2000-12-28 23:03:33 +0000 |
---|---|---|
committer | rbb <rbb@13f79535-47bb-0310-9956-ffa450edef68> | 2000-12-28 23:03:33 +0000 |
commit | 6f8314d7fa3f9851046db2c3103f398d30548861 (patch) | |
tree | eb538bf00d667d7b27fd113b647f11712d5f831c /test | |
parent | db305e40f3c13163ac12476823b1aaa405819629 (diff) | |
download | libapr-6f8314d7fa3f9851046db2c3103f398d30548861.tar.gz |
We do not want to return EAGAIN if there is a timeout set on the socket.
git-svn-id: http://svn.apache.org/repos/asf/apr/apr/trunk@60989 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'test')
-rw-r--r-- | test/sendfile.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/test/sendfile.c b/test/sendfile.c index 4ef8b3ec1..1da59d3b5 100644 --- a/test/sendfile.c +++ b/test/sendfile.c @@ -434,7 +434,7 @@ static int client(client_socket_mode_t socket_mode) } while (total_bytes_sent < expected_len && (rv == APR_SUCCESS || - APR_STATUS_IS_EAGAIN(rv))); + (APR_STATUS_IS_EAGAIN(rv) && socket_mode != TIMEOUT))); if (total_bytes_sent != expected_len) { fprintf(stderr, "client problem: sent %ld of %ld bytes\n", |