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.c11
1 files changed, 8 insertions, 3 deletions
diff --git a/src/daemon/connection.c b/src/daemon/connection.c
index c7e42af6..02e127e8 100644
--- a/src/daemon/connection.c
+++ b/src/daemon/connection.c
@@ -1424,7 +1424,12 @@ do_read (struct MHD_Connection *connection)
1424 int bytes_read; 1424 int bytes_read;
1425 1425
1426 if (connection->read_buffer_size == connection->read_buffer_offset) 1426 if (connection->read_buffer_size == connection->read_buffer_offset)
1427 {
1428 MHD_DLOG (connection->daemon,
1429 "connection->read_buffer_size == connection->read_buffer_offset\n");
1430
1427 return MHD_NO; 1431 return MHD_NO;
1432 }
1428 1433
1429 bytes_read = connection->recv_cls (connection, 1434 bytes_read = connection->recv_cls (connection,
1430 &connection->read_buffer 1435 &connection->read_buffer
@@ -1432,15 +1437,15 @@ do_read (struct MHD_Connection *connection)
1432 connection->read_buffer_size - 1437 connection->read_buffer_size -
1433 connection->read_buffer_offset); 1438 connection->read_buffer_offset);
1434 if (bytes_read < 0) 1439 if (bytes_read < 0)
1435 { 1440 {
1436 if (errno == EINTR) 1441 if (errno == EINTR)
1437 return MHD_NO; 1442 return MHD_NO;
1438#if HAVE_MESSAGES 1443#if HAVE_MESSAGES
1439#if HTTPS_SUPPORT 1444#if HTTPS_SUPPORT
1440 if (0 != (connection->daemon->options & MHD_USE_SSL)) 1445 if (0 != (connection->daemon->options & MHD_USE_SSL))
1441 MHD_DLOG (connection->daemon, 1446 MHD_DLOG (connection->daemon,
1442 "Failed to receive data: %s\n", 1447 "Failed to receive data: %s (%i)\n",
1443 gnutls_strerror (bytes_read)); 1448 gnutls_strerror (bytes_read), bytes_read);
1444 else 1449 else
1445#endif 1450#endif
1446 MHD_DLOG (connection->daemon, 1451 MHD_DLOG (connection->daemon,