mirror of https://github.com/Icinga/icinga2.git
Increase the buffer size in TlsStream::OnEvent to avoid unnecessary poll() calls
refs #11014
This commit is contained in:
parent
ec050dd2a7
commit
83889dcbb0
|
@ -134,7 +134,7 @@ void TlsStream::OnEvent(int revents)
|
||||||
if (!m_SSL)
|
if (!m_SSL)
|
||||||
return;
|
return;
|
||||||
|
|
||||||
char buffer[512];
|
char buffer[64 * 1024];
|
||||||
|
|
||||||
if (m_CurrentAction == TlsActionNone) {
|
if (m_CurrentAction == TlsActionNone) {
|
||||||
if (revents & (POLLIN | POLLERR | POLLHUP))
|
if (revents & (POLLIN | POLLERR | POLLHUP))
|
||||||
|
|
Loading…
Reference in New Issue