Print specific timeout exceeded in error messages

This commit is contained in:
baldurk
2020-05-13 20:48:24 +01:00
parent 05201fa67e
commit a350e92f62
+2 -2
View File
@@ -177,7 +177,7 @@ bool Socket::SendDataBlocking(const void *buf, uint32_t length)
}
else if(err == EWOULDBLOCK || err == EAGAIN)
{
RDCWARN("Timeout in send");
RDCWARN("Timeout of %f seconds exceeded in send", float(timeoutMS) / 1000.0f);
Shutdown();
return false;
}
@@ -309,7 +309,7 @@ bool Socket::RecvDataBlocking(void *buf, uint32_t length)
}
else if(err == EWOULDBLOCK || err == EAGAIN)
{
RDCWARN("Timeout in recv");
RDCWARN("Timeout of %f seconds exceeded in recv", float(timeoutMS) / 1000.0f);
Shutdown();
return false;
}