summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/serv.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/serv.c b/src/serv.c
index 37851a8450..f0cce6522d 100644
--- a/src/serv.c
+++ b/src/serv.c
@@ -415,6 +415,9 @@ gnutls_session_t initialize_session(int dtls)
*/
gnutls_handshake_set_private_extensions(session, 1);
+ gnutls_handshake_set_timeout(session,
+ GNUTLS_DEFAULT_HANDSHAKE_TIMEOUT);
+
if (nodb == 0) {
gnutls_db_set_retrieve_function(session, wrap_db_fetch);
gnutls_db_set_remove_function(session, wrap_db_delete);