From 9dc0a1d862c234303b6b385a77daf40017a155ed Mon Sep 17 00:00:00 2001 From: Adam Potolsky Date: Thu, 25 Jun 2015 09:54:28 -0700 Subject: [PATCH] Added comment for clarity #4750 --- src/lib/plugin/ns/SecureSocket.cpp | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/lib/plugin/ns/SecureSocket.cpp b/src/lib/plugin/ns/SecureSocket.cpp index 397e2e5e..40c3f219 100644 --- a/src/lib/plugin/ns/SecureSocket.cpp +++ b/src/lib/plugin/ns/SecureSocket.cpp @@ -425,6 +425,9 @@ SecureSocket::checkResult(int status, int& retry) break; case SSL_ERROR_WANT_WRITE: + // Need to make sure the socket is known to be writable so the impending + // select action actually triggers on a write. This isn't necessary for + // m_readable because the socket logic is always readable m_writable = true; retry++; LOG((CLOG_DEBUG2 "want to write, error=%d, attempt=%d", errorCode, retry));