mirror of https://github.com/Icinga/icinga2.git
Bugfixes for the socket subsystem.
This commit is contained in:
parent
acfa3e6475
commit
8ac0a80101
|
@ -538,6 +538,13 @@ void Socket::HandleWritableClient(void)
|
|||
|
||||
rc = send(GetFD(), data, count, 0);
|
||||
|
||||
#ifdef _WIN32
|
||||
if (rc < 0 && WSAGetLastError() == WSAEWOULDBLOCK)
|
||||
#else /* _WIN32 */
|
||||
if (rc < 0 && errno == EAGAIN)
|
||||
#endif /* _WIN32 */
|
||||
break;
|
||||
|
||||
if (rc <= 0) {
|
||||
#ifndef _WIN32
|
||||
BOOST_THROW_EXCEPTION(socket_error()
|
||||
|
|
|
@ -293,5 +293,5 @@ void TlsStream::Write(const void *buffer, size_t count)
|
|||
m_SendQueue->Write(buffer, count);
|
||||
}
|
||||
|
||||
HandleIO();
|
||||
Utility::QueueAsyncCallback(boost::bind(&TlsStream::HandleIO, this));
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue