From 9854b229f7d0a6f2f77689fa93f3e3eea859983b Mon Sep 17 00:00:00 2001 From: Noah Koontz Date: Wed, 30 Sep 2020 08:44:43 -0700 Subject: [PATCH] Remove flush in available() to prevent timeouts --- src/SSLClient.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/SSLClient.cpp b/src/SSLClient.cpp index cbe3844..3f5eaa5 100644 --- a/src/SSLClient.cpp +++ b/src/SSLClient.cpp @@ -143,7 +143,7 @@ int SSLClient::available() { } else if (state == BR_SSL_CLOSED) m_info("Engine closed after update", func_name); // flush the buffer if it's stuck in the SENDAPP state - else if (state & BR_SSL_SENDAPP) br_ssl_engine_flush(&m_sslctx.eng, 0); + // else if (state & BR_SSL_SENDAPP) br_ssl_engine_flush(&m_sslctx.eng, 0); // other state, or client is closed return 0; }