From: Gunnar Beutner Date: Tue, 2 Feb 2016 07:28:54 +0000 (+0100) Subject: Increase the buffer size in TlsStream::OnEvent to avoid unnecessary poll() calls X-Git-Tag: v2.5.0~566 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=83889dcbb0eee9f945e22c0881e64393ab55521b;p=icinga2 Increase the buffer size in TlsStream::OnEvent to avoid unnecessary poll() calls refs #11014 --- diff --git a/lib/base/tlsstream.cpp b/lib/base/tlsstream.cpp index f9b63864a..5984105f4 100644 --- a/lib/base/tlsstream.cpp +++ b/lib/base/tlsstream.cpp @@ -134,7 +134,7 @@ void TlsStream::OnEvent(int revents) if (!m_SSL) return; - char buffer[512]; + char buffer[64 * 1024]; if (m_CurrentAction == TlsActionNone) { if (revents & (POLLIN | POLLERR | POLLHUP))