summaryrefslogtreecommitdiff
path: root/src/modules/extra
diff options
context:
space:
mode:
Diffstat (limited to 'src/modules/extra')
-rw-r--r--src/modules/extra/m_ssl_openssl.cpp4
1 files changed, 1 insertions, 3 deletions
diff --git a/src/modules/extra/m_ssl_openssl.cpp b/src/modules/extra/m_ssl_openssl.cpp
index 0dfc9dd29..00c4c5fa3 100644
--- a/src/modules/extra/m_ssl_openssl.cpp
+++ b/src/modules/extra/m_ssl_openssl.cpp
@@ -549,6 +549,7 @@ class ModuleSSLOpenSSL : public Module
}
session->outbuf.append(buffer, count);
+ MakePollWrite(session);
if (session->status == ISSL_HANDSHAKING)
{
@@ -589,8 +590,6 @@ class ModuleSSLOpenSSL : public Module
}
else if (ret < 0)
{
- MakePollWrite(session);
-
int err = SSL_get_error(session->sess, ret);
if (err == SSL_ERROR_WANT_WRITE)
@@ -612,7 +611,6 @@ class ModuleSSLOpenSSL : public Module
else
{
session->outbuf = session->outbuf.substr(ret);
- MakePollWrite(session);
return ret;
}
}