aboutsummaryrefslogtreecommitdiff
path: root/src/daemon/connection.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/daemon/connection.c')
-rw-r--r--src/daemon/connection.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/src/daemon/connection.c b/src/daemon/connection.c
index 5c2106ee..c75c0aee 100644
--- a/src/daemon/connection.c
+++ b/src/daemon/connection.c
@@ -277,7 +277,7 @@ need_100_continue (struct MHD_Connection *connection)
277 277
278 return ((connection->response == NULL) && 278 return ((connection->response == NULL) &&
279 (connection->version != NULL) && 279 (connection->version != NULL) &&
280 (0 == strcasecmp (connection->version, 280 (0 == strcasecmp (connection->version,
281 MHD_HTTP_VERSION_1_1)) && 281 MHD_HTTP_VERSION_1_1)) &&
282 (NULL != (expect = MHD_lookup_connection_value (connection, 282 (NULL != (expect = MHD_lookup_connection_value (connection,
283 MHD_HEADER_KIND, 283 MHD_HEADER_KIND,
@@ -1463,7 +1463,7 @@ do_read (struct MHD_Connection *connection)
1463 connection->read_buffer_offset); 1463 connection->read_buffer_offset);
1464 if (bytes_read < 0) 1464 if (bytes_read < 0)
1465 { 1465 {
1466 if (errno == EINTR) 1466 if ((errno == EINTR) || (errno == EAGAIN))
1467 return MHD_NO; 1467 return MHD_NO;
1468#if HAVE_MESSAGES 1468#if HAVE_MESSAGES
1469#if HTTPS_SUPPORT 1469#if HTTPS_SUPPORT
@@ -1510,7 +1510,7 @@ do_write (struct MHD_Connection *connection)
1510 1510
1511 if (ret < 0) 1511 if (ret < 0)
1512 { 1512 {
1513 if (errno == EINTR) 1513 if ((errno == EINTR) || (errno == EAGAIN))
1514 return MHD_NO; 1514 return MHD_NO;
1515#if HAVE_MESSAGES 1515#if HAVE_MESSAGES
1516#if HTTPS_SUPPORT 1516#if HTTPS_SUPPORT
@@ -1836,7 +1836,7 @@ MHD_connection_handle_write (struct MHD_Connection *connection)
1836 connection->continue_message_write_offset); 1836 connection->continue_message_write_offset);
1837 if (ret < 0) 1837 if (ret < 0)
1838 { 1838 {
1839 if (errno == EINTR) 1839 if ((errno == EINTR) || (errno == EAGAIN))
1840 break; 1840 break;
1841#if HAVE_MESSAGES 1841#if HAVE_MESSAGES
1842 MHD_DLOG (connection->daemon, 1842 MHD_DLOG (connection->daemon,
@@ -1898,7 +1898,7 @@ MHD_connection_handle_write (struct MHD_Connection *connection)
1898 pthread_mutex_unlock (&response->mutex); 1898 pthread_mutex_unlock (&response->mutex);
1899 if (ret < 0) 1899 if (ret < 0)
1900 { 1900 {
1901 if (errno == EINTR) 1901 if ((errno == EINTR) || (errno == EAGAIN))
1902 return MHD_YES; 1902 return MHD_YES;
1903#if HAVE_MESSAGES 1903#if HAVE_MESSAGES
1904 MHD_DLOG (connection->daemon, 1904 MHD_DLOG (connection->daemon,