diff options
Diffstat (limited to 'src/tls_timeoutio.c')
-rw-r--r-- | src/tls_timeoutio.c | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/src/tls_timeoutio.c b/src/tls_timeoutio.c index 3a2936b..e97c858 100644 --- a/src/tls_timeoutio.c +++ b/src/tls_timeoutio.c @@ -57,8 +57,9 @@ int tls_timeoutaccept(int t, int rfd, int wfd, SSL *ssl) if (r <= 0) { ndelay_off(rfd); ndelay_off(wfd); - } else + } else { SSL_set_mode(ssl, SSL_MODE_ENABLE_PARTIAL_WRITE); + } return r; } @@ -74,8 +75,9 @@ int tls_timeoutconn(int t, int rfd, int wfd, SSL *ssl) if (r <= 0) { ndelay_off(rfd); ndelay_off(wfd); - } else + } else { SSL_set_mode(ssl, SSL_MODE_ENABLE_PARTIAL_WRITE); + } return r; } |