libmicrohttpd

HTTP/1.x server C library (MHD 1.x, stable)
Log | Files | Refs | Submodules | README | LICENSE

commit 4899ea8e77e76368bcd2c22b51f28b6877f6b529
parent 50514ddec0e31ab88fc8897d4f2a853d1abb97d5
Author: Christian Grothoff <christian@grothoff.org>
Date:   Mon,  7 Mar 2011 10:41:00 +0000

undo

Diffstat:
Msrc/daemon/connection.c | 11+++--------
1 file changed, 3 insertions(+), 8 deletions(-)

diff --git 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,