diff options
author | Evgeny Grin (Karlson2k) <k2k@narod.ru> | 2017-07-13 21:23:50 +0300 |
---|---|---|
committer | Evgeny Grin (Karlson2k) <k2k@narod.ru> | 2017-07-13 21:44:03 +0300 |
commit | 67f0f76b90a8564ef45ef55e6be6e6a973f66ebc (patch) | |
tree | aaf7e63f91fcb653f8f0e994b558924658d4952a /src/microhttpd/daemon.c | |
parent | 5f2517a9ea9f0be061bc13d1fe069728a0cf83ee (diff) | |
download | libmicrohttpd-67f0f76b90a8564ef45ef55e6be6e6a973f66ebc.tar.gz libmicrohttpd-67f0f76b90a8564ef45ef55e6be6e6a973f66ebc.zip |
Use GNUTLS_NONBLOCK (if available) for TLS sessions
Diffstat (limited to 'src/microhttpd/daemon.c')
-rw-r--r-- | src/microhttpd/daemon.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/microhttpd/daemon.c b/src/microhttpd/daemon.c index 08fb8827..88dabed5 100644 --- a/src/microhttpd/daemon.c +++ b/src/microhttpd/daemon.c | |||
@@ -2296,6 +2296,9 @@ internal_add_connection (struct MHD_Daemon *daemon, | |||
2296 | #if (GNUTLS_VERSION_NUMBER+0 >= 0x030402) | 2296 | #if (GNUTLS_VERSION_NUMBER+0 >= 0x030402) |
2297 | | GNUTLS_NO_SIGNAL | 2297 | | GNUTLS_NO_SIGNAL |
2298 | #endif /* GNUTLS_VERSION_NUMBER >= 0x030402 */ | 2298 | #endif /* GNUTLS_VERSION_NUMBER >= 0x030402 */ |
2299 | #if GNUTLS_VERSION_MAJOR >= 3 | ||
2300 | | GNUTLS_NONBLOCK | ||
2301 | #endif /* GNUTLS_VERSION_MAJOR >= 3*/ | ||
2299 | ); | 2302 | ); |
2300 | gnutls_priority_set (connection->tls_session, | 2303 | gnutls_priority_set (connection->tls_session, |
2301 | daemon->priority_cache); | 2304 | daemon->priority_cache); |