aboutsummaryrefslogtreecommitdiff
path: root/src/Sockets.c
diff options
context:
space:
mode:
authorgoodale <goodale@1faa4e14-9dd3-4be0-9f0e-ffe519881164>2001-03-17 19:25:16 +0000
committergoodale <goodale@1faa4e14-9dd3-4be0-9f0e-ffe519881164>2001-03-17 19:25:16 +0000
commit7ec1067a6382184b2247e232953bec46822c3b05 (patch)
treeb01883aefba158dc860cf460a8bf6b6e324e33a2 /src/Sockets.c
parent60ce278ea1a8007cf6a6d8b60a7b7b7734a570b3 (diff)
No longer abort run if there's an error in connect, just don't create a new
socket. This should hopefully solve the 'connection reset by peer' problem which we saw earlier. Tom git-svn-id: http://svn.cactuscode.org/arrangements/CactusConnect/HTTPD/trunk@118 1faa4e14-9dd3-4be0-9f0e-ffe519881164
Diffstat (limited to 'src/Sockets.c')
-rw-r--r--src/Sockets.c15
1 files changed, 9 insertions, 6 deletions
diff --git a/src/Sockets.c b/src/Sockets.c
index 9d52218..d4a4710 100644
--- a/src/Sockets.c
+++ b/src/Sockets.c
@@ -275,14 +275,17 @@ int HTTP_Poll(cGH *cctkGH, long sec, long usec)
if (ERROR_CHECK(new))
{
perror ("accept");
- CCTK_Abort(cctkGH, EXIT_FAILURE);
+ /*CCTK_Abort(cctkGH, EXIT_FAILURE);*/
}
- fprintf (stderr,
- "Server: connect from host %s, port %hd.\n",
- inet_ntoa (clientname.sin_addr),
- ntohs (clientname.sin_port));
+ else
+ {
+ fprintf (stderr,
+ "Server: connect from host %s, port %hd.\n",
+ inet_ntoa (clientname.sin_addr),
+ ntohs (clientname.sin_port));
- SocketCreate(new);
+ SocketCreate(new);
+ }
}
for(this = socklist; this; this = next)