]> granicus.if.org Git - icinga2/commitdiff
Increase the buffer size in TlsStream::OnEvent to avoid unnecessary poll() calls
authorGunnar Beutner <gunnar@beutner.name>
Tue, 2 Feb 2016 07:28:54 +0000 (08:28 +0100)
committerGunnar Beutner <gunnar@beutner.name>
Tue, 2 Feb 2016 07:28:54 +0000 (08:28 +0100)
refs #11014

lib/base/tlsstream.cpp

index f9b63864a6e1906867cd31fbf6d88f0e25518fc8..5984105f4925441873b31fd00a8092193c27064f 100644 (file)
@@ -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))