From a774e6c10ced8a8852c247555c22f5a30c702b40 Mon Sep 17 00:00:00 2001 From: Michael van der Werve Date: Tue, 8 Jan 2019 13:14:42 +0100 Subject: [PATCH] on ssl error, make sure that it is found out --- src/linux_tcp/sslconnected.h | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/linux_tcp/sslconnected.h b/src/linux_tcp/sslconnected.h index 8bff666..30f22e0 100644 --- a/src/linux_tcp/sslconnected.h +++ b/src/linux_tcp/sslconnected.h @@ -404,7 +404,10 @@ public: // ssl is in an error state, however that is ok because it will set an internal // state to the error state so that on the next calls to state-changing objects, // the tcp socket will be torn down - return (void) repeat(state_sending, error); + if (repeat(state_sending, error)) return; + + // the repeat call failed, so we are going to find out with a readable file descriptor + _parent->onIdle(this, _socket, readable); } /**