mirror of
https://github.com/Icinga/icinga2.git
synced 2025-07-27 07:34:15 +02:00
Bugfixes.
This commit is contained in:
parent
abd34bdaa0
commit
77ce61d548
@ -151,7 +151,9 @@ void TlsClient::WritableEventHandler(void)
|
||||
m_BlockRead = false;
|
||||
m_BlockWrite = false;
|
||||
|
||||
rc = SSL_write(m_SSL.get(), (const char *)GetSendQueue()->GetReadBuffer(), GetSendQueue()->GetSize());
|
||||
size_t write_size = std::min(GetSendQueue()->GetSize(), (size_t)(16 * 1024));
|
||||
|
||||
rc = SSL_write(m_SSL.get(), (const char *)GetSendQueue()->GetReadBuffer(), write_size);
|
||||
|
||||
if (rc <= 0) {
|
||||
int error = SSL_get_error(m_SSL.get(), rc);
|
||||
|
@ -210,6 +210,7 @@ void DelegationComponent::DelegationTimerHandler(void)
|
||||
if (delegated > 0) {
|
||||
// TODO: send clear message when session is established
|
||||
// TODO: clear local assignments when session is lost
|
||||
need_clear = true; /* remove this once clear messages are properly sent */
|
||||
if (need_clear) {
|
||||
map<Endpoint::Ptr, int>::iterator hit;
|
||||
for (hit = histogram.begin(); hit != histogram.end(); hit++) {
|
||||
|
Loading…
x
Reference in New Issue
Block a user