diff options
Diffstat (limited to 'src/microhttpd/daemon.c')
-rw-r--r-- | src/microhttpd/daemon.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/microhttpd/daemon.c b/src/microhttpd/daemon.c index d111d9cd..f92c1f29 100644 --- a/src/microhttpd/daemon.c +++ b/src/microhttpd/daemon.c | |||
@@ -400,7 +400,9 @@ recv_tls_adapter (struct MHD_Connection *connection, void *other, size_t i) | |||
400 | if ( (GNUTLS_E_AGAIN == res) || | 400 | if ( (GNUTLS_E_AGAIN == res) || |
401 | (GNUTLS_E_INTERRUPTED == res) ) | 401 | (GNUTLS_E_INTERRUPTED == res) ) |
402 | { | 402 | { |
403 | fprintf (stderr, "RAGAIN!\n"); | ||
403 | errno = EINTR; | 404 | errno = EINTR; |
405 | connection->epoll_state &= ~MHD_EPOLL_STATE_READ_READY; | ||
404 | return -1; | 406 | return -1; |
405 | } | 407 | } |
406 | if (res < 0) | 408 | if (res < 0) |
@@ -438,7 +440,9 @@ send_tls_adapter (struct MHD_Connection *connection, | |||
438 | if ( (GNUTLS_E_AGAIN == res) || | 440 | if ( (GNUTLS_E_AGAIN == res) || |
439 | (GNUTLS_E_INTERRUPTED == res) ) | 441 | (GNUTLS_E_INTERRUPTED == res) ) |
440 | { | 442 | { |
443 | fprintf (stderr, "WAGAIN!\n"); | ||
441 | errno = EINTR; | 444 | errno = EINTR; |
445 | connection->epoll_state &= ~MHD_EPOLL_STATE_WRITE_READY; | ||
442 | return -1; | 446 | return -1; |
443 | } | 447 | } |
444 | return res; | 448 | return res; |