From d2629ef0535b4c4cd689a1499f26e7378baa1627 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?S=C3=B6nke=20Ludwig?= Date: Mon, 30 Jan 2017 11:29:01 +0100 Subject: [PATCH] Don't throw on read error in TCPConnection.waitForData. --- source/vibe/core/net.d | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/source/vibe/core/net.d b/source/vibe/core/net.d index 117c1f4..7a5811f 100644 --- a/source/vibe/core/net.d +++ b/source/vibe/core/net.d @@ -518,8 +518,8 @@ mixin(tracer); m_context.readBuffer.putN(waiter.results[2]); switch (waiter.results[1]) { default: - logInfo("read status %s", waiter.results[1]); - throw new Exception("Error reading data from socket."); + logDebug("Error status when waiting for data: %s", waiter.results[1]); + break; case IOStatus.ok: break; case IOStatus.wouldBlock: assert(mode == IOMode.immediate); break; case IOStatus.disconnected: break;