aboutsummaryrefslogtreecommitdiff
path: root/src/Sockets.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/Sockets.c')
-rw-r--r--src/Sockets.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/Sockets.c b/src/Sockets.c
index f329d5a..1984531 100644
--- a/src/Sockets.c
+++ b/src/Sockets.c
@@ -208,10 +208,10 @@ int HTTP_Poll(cGH *cctkGH, long sec, long usec)
/* Check if any input is available on one or more active sockets. */
read_fd_set = active_fd_set;
- if (ERROR_CHECK(select (FD_SETSIZE, &read_fd_set, NULL, NULL, &timeout)))
+ if (ERROR_CHECK(select (FD_SETSIZE, &read_fd_set, NULL, NULL, real_timeout)))
{
perror ("select");
- exit (EXIT_FAILURE);
+ CCTK_Abort(cctkGH, EXIT_FAILURE);
}
/* Service all the sockets with input pending. */
@@ -230,7 +230,7 @@ int HTTP_Poll(cGH *cctkGH, long sec, long usec)
if (ERROR_CHECK(new))
{
perror ("accept");
- exit (EXIT_FAILURE);
+ CCTK_Abort(cctkGH, EXIT_FAILURE);
}
fprintf (stderr,
"Server: connect from host %s, port %hd.\n",
@@ -300,7 +300,7 @@ int HTTP_Write(httpRequest *request, const char *buffer, size_t count)
@endhistory
@@*/
-int HTTP_Read(httpRequest *request, const char *buffer, size_t count)
+int HTTP_Read(httpRequest *request, char *buffer, size_t count)
{
int retval;