summaryrefslogtreecommitdiff
path: root/tests/Conn_Test.cpp
diff options
context:
space:
mode:
authorirfan <irfan@ae88bc3d-4319-0410-8dbf-d08b4c9d3795>1999-04-16 23:18:19 +0000
committerirfan <irfan@ae88bc3d-4319-0410-8dbf-d08b4c9d3795>1999-04-16 23:18:19 +0000
commit6c3300bac68f6c96bb5d5b6a7bab2b7e1951433c (patch)
treed6cd83b9443959c9bf07894182abdeb9142b5a5e /tests/Conn_Test.cpp
parentd51288b52560930d83c53057eca9617fbfd92273 (diff)
downloadATCD-6c3300bac68f6c96bb5d5b6a7bab2b7e1951433c.tar.gz
Fri Apr 16 18:09:44 1999 Irfan Pyarali <irfan@cs.wustl.edu>
Diffstat (limited to 'tests/Conn_Test.cpp')
-rw-r--r--tests/Conn_Test.cpp18
1 files changed, 14 insertions, 4 deletions
diff --git a/tests/Conn_Test.cpp b/tests/Conn_Test.cpp
index 0757f8294eb..816ec732e6b 100644
--- a/tests/Conn_Test.cpp
+++ b/tests/Conn_Test.cpp
@@ -458,10 +458,20 @@ server (void *arg)
if (result == -1)
{
svc_handler->close ();
- ACE_ERROR_RETURN ((LM_ERROR,
- ASYS_TEXT ("(%P|%t) %p\n"),
- ASYS_TEXT ("accept failed, shutting down")),
- 0);
+
+ if (errno == ETIMEDOUT)
+ {
+ ACE_DEBUG ((LM_DEBUG,
+ ASYS_TEXT ("accept timed out\n")));
+ return 0;
+ }
+ else
+ {
+ ACE_ERROR_RETURN ((LM_ERROR,
+ ASYS_TEXT ("(%P|%t) %p\n"),
+ ASYS_TEXT ("accept failed, shutting down")),
+ 0);
+ }
}
ACE_DEBUG ((LM_DEBUG,
ASYS_TEXT ("(%P|%t) client %s connected from %d\n"),