mirror of
https://github.com/pocoproject/poco.git
synced 2025-11-23 13:32:11 +01:00
fixed timeout for WSAPoll
This commit is contained in:
@@ -688,7 +688,7 @@ bool SocketImpl::poll(const Poco::Timespan& timeout, int mode)
|
|||||||
{
|
{
|
||||||
Poco::Timestamp start;
|
Poco::Timestamp start;
|
||||||
#ifdef _WIN32
|
#ifdef _WIN32
|
||||||
rc = WSAPoll(&pollBuf, 1, static_cast<INT>(timeout.totalMilliseconds()));
|
rc = WSAPoll(&pollBuf, 1, static_cast<INT>(remainingTime.totalMilliseconds()));
|
||||||
#else
|
#else
|
||||||
rc = ::poll(&pollBuf, 1, remainingTime.totalMilliseconds());
|
rc = ::poll(&pollBuf, 1, remainingTime.totalMilliseconds());
|
||||||
#endif
|
#endif
|
||||||
|
|||||||
Reference in New Issue
Block a user