From a350e92f628fee5628e7a5663c103e3f5e038a24 Mon Sep 17 00:00:00 2001 From: baldurk Date: Wed, 13 May 2020 20:48:24 +0100 Subject: [PATCH] Print specific timeout exceeded in error messages --- renderdoc/os/posix/posix_network.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/renderdoc/os/posix/posix_network.cpp b/renderdoc/os/posix/posix_network.cpp index 5e0ac1b89..9507de673 100644 --- a/renderdoc/os/posix/posix_network.cpp +++ b/renderdoc/os/posix/posix_network.cpp @@ -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; }