From 4899ea8e77e76368bcd2c22b51f28b6877f6b529 Mon Sep 17 00:00:00 2001 From: Christian Grothoff Date: Mon, 7 Mar 2011 10:41:00 +0000 Subject: [PATCH] undo --- src/daemon/connection.c | 11 +++-------- 1 file changed, 3 insertions(+), 8 deletions(-) diff --git a/src/daemon/connection.c b/src/daemon/connection.c index 02e127e8..c7e42af6 100644 --- a/src/daemon/connection.c +++ b/src/daemon/connection.c @@ -1424,12 +1424,7 @@ do_read (struct MHD_Connection *connection) int bytes_read; if (connection->read_buffer_size == connection->read_buffer_offset) - { - MHD_DLOG (connection->daemon, - "connection->read_buffer_size == connection->read_buffer_offset\n"); - return MHD_NO; - } bytes_read = connection->recv_cls (connection, &connection->read_buffer @@ -1437,15 +1432,15 @@ do_read (struct MHD_Connection *connection) connection->read_buffer_size - connection->read_buffer_offset); if (bytes_read < 0) - { + { if (errno == EINTR) return MHD_NO; #if HAVE_MESSAGES #if HTTPS_SUPPORT if (0 != (connection->daemon->options & MHD_USE_SSL)) MHD_DLOG (connection->daemon, - "Failed to receive data: %s (%i)\n", - gnutls_strerror (bytes_read), bytes_read); + "Failed to receive data: %s\n", + gnutls_strerror (bytes_read)); else #endif MHD_DLOG (connection->daemon,