aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorEvgeny Grin (Karlson2k) <k2k@narod.ru>2017-03-16 18:43:53 +0300
committerEvgeny Grin (Karlson2k) <k2k@narod.ru>2017-03-16 18:43:53 +0300
commit5e099343f2ad5851b5b63bc7c9cb3b0c216f4103 (patch)
treebdce7a2638bb191a032359b71ffde3b7a8bf9c97
parent7764a946fd1c051dea59b0e3404a371a34319572 (diff)
downloadlibmicrohttpd-5e099343f2ad5851b5b63bc7c9cb3b0c216f4103.tar.gz
libmicrohttpd-5e099343f2ad5851b5b63bc7c9cb3b0c216f4103.zip
MHD_tls_connection_handle_idle(): do not need to explicitly handle data pending in TLS buffers
Data from TLS buffers handled automatically by read/write functions.
-rw-r--r--src/microhttpd/connection_https.c3
1 files changed, 0 insertions, 3 deletions
diff --git a/src/microhttpd/connection_https.c b/src/microhttpd/connection_https.c
index dea9956d..3dca50e5 100644
--- a/src/microhttpd/connection_https.c
+++ b/src/microhttpd/connection_https.c
@@ -154,9 +154,6 @@ MHD_tls_connection_handle_idle (struct MHD_Connection *connection)
154 case MHD_CONNECTION_CLOSED: 154 case MHD_CONNECTION_CLOSED:
155 return MHD_connection_handle_idle (connection); 155 return MHD_connection_handle_idle (connection);
156 default: 156 default:
157 if ( (0 != gnutls_record_check_pending (connection->tls_session)) &&
158 (MHD_YES != MHD_tls_connection_handle_read (connection)) )
159 return MHD_YES;
160 return MHD_connection_handle_idle (connection); 157 return MHD_connection_handle_idle (connection);
161 } 158 }
162#ifdef EPOLL_SUPPORT 159#ifdef EPOLL_SUPPORT