mirror of
https://github.com/pocoproject/poco.git
synced 2025-10-28 19:51:58 +01:00
fix for pre-c++11 compilers
This commit is contained in:
@@ -490,7 +490,7 @@ protected:
|
||||
void reset(poco_socket_t fd = POCO_INVALID_SOCKET);
|
||||
/// Allows subclasses to set the socket manually, iff no valid socket is set yet.
|
||||
|
||||
void checkBrokenTimeout(const SelectMode& mode);
|
||||
void checkBrokenTimeout(SelectMode mode);
|
||||
|
||||
static int lastError();
|
||||
/// Returns the last error code.
|
||||
|
||||
@@ -306,11 +306,11 @@ void SocketImpl::shutdown()
|
||||
}
|
||||
|
||||
|
||||
void SocketImpl::checkBrokenTimeout(const SelectMode& mode)
|
||||
void SocketImpl::checkBrokenTimeout(SelectMode mode)
|
||||
{
|
||||
if (_isBrokenTimeout)
|
||||
{
|
||||
Poco::Timespan timeout = (mode == SelectMode::SELECT_READ) ? _recvTimeout : _sndTimeout;
|
||||
Poco::Timespan timeout = (mode == SELECT_READ) ? _recvTimeout : _sndTimeout;
|
||||
if (timeout.totalMicroseconds() != 0)
|
||||
{
|
||||
if (!poll(timeout, mode))
|
||||
|
||||
2
openssl
2
openssl
Submodule openssl updated: 0c6d16ec85...26b1673caa
Reference in New Issue
Block a user