mirror of
https://github.com/baldurk/renderdoc.git
synced 2026-08-12 01:30:57 +00:00
Handle TIMEDOUT the same as WOULDBLOCK when doing blocking recv/send
This commit is contained in:
@@ -171,7 +171,7 @@ bool Socket::SendDataBlocking(const void *buf, uint32_t length)
|
||||
{
|
||||
int err = WSAGetLastError();
|
||||
|
||||
if(err == WSAEWOULDBLOCK)
|
||||
if(err == WSAEWOULDBLOCK || err == WSAETIMEDOUT)
|
||||
{
|
||||
RDCWARN("Timeout in send");
|
||||
Shutdown();
|
||||
@@ -292,7 +292,7 @@ bool Socket::RecvDataBlocking(void *buf, uint32_t length)
|
||||
{
|
||||
int err = WSAGetLastError();
|
||||
|
||||
if(err == WSAEWOULDBLOCK)
|
||||
if(err == WSAEWOULDBLOCK || err == WSAETIMEDOUT)
|
||||
{
|
||||
RDCWARN("Timeout in recv");
|
||||
Shutdown();
|
||||
|
||||
Reference in New Issue
Block a user