[icinga-checkins] icinga.org: icinga2/master: Increase the buffer size in TlsStream:: OnEvent to avoid unnecessary poll() calls

git at icinga.org git at icinga.org
Tue Feb 2 08:29:29 CET 2016


Module: icinga2
Branch: master
Commit: 83889dcbb0eee9f945e22c0881e64393ab55521b
URL:    https://git.icinga.org/?p=icinga2.git;a=commit;h=83889dcbb0eee9f945e22c0881e64393ab55521b

Author: Gunnar Beutner <gunnar at beutner.name>
Date:   Tue Feb  2 08:28:54 2016 +0100

Increase the buffer size in TlsStream::OnEvent to avoid unnecessary poll() calls

refs #11014

---

 lib/base/tlsstream.cpp |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/lib/base/tlsstream.cpp b/lib/base/tlsstream.cpp
index f9b6386..5984105 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))



More information about the icinga-checkins mailing list