Skip to content

Commit

Permalink
Fix
Browse files Browse the repository at this point in the history
  • Loading branch information
alesapin committed Oct 2, 2024
1 parent e1ac532 commit 5029dd2
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions contrib/poco/Net/src/SocketImpl.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -336,7 +336,12 @@ int SocketImpl::sendBytes(const void* buffer, int length, int flags)

int SocketImpl::receiveBytes(void* buffer, int length, int flags)
{
#if defined(POCO_OS_FAMILY_WINDOWS)
bool blocking = _blocking;
#else
bool blocking = _blocking && (flags & MSG_DONTWAIT) == 0;
#endif

if (_isBrokenTimeout && blocking)
{
if (_recvTimeout.totalMicroseconds() != 0)
Expand Down

0 comments on commit 5029dd2

Please sign in to comment.