From 97975deede6453e4d76afdc45ab557196a90b34e Mon Sep 17 00:00:00 2001 From: Thulinma Date: Thu, 12 May 2016 14:59:13 +0200 Subject: [PATCH] Made sockets less verbose. --- lib/socket.cpp | 14 ++++---------- 1 file changed, 4 insertions(+), 10 deletions(-) diff --git a/lib/socket.cpp b/lib/socket.cpp index a8561962..ea825a1e 100644 --- a/lib/socket.cpp +++ b/lib/socket.cpp @@ -510,11 +510,8 @@ unsigned int Socket::Connection::iwrite(const void * buffer, int len) { return 0; break; default: - if (errno != EPIPE && errno != ECONNRESET) { - Error = true; - remotehost = strerror(errno); - DEBUG_MSG(DLVL_WARN, "Could not iwrite data! Error: %s", remotehost.c_str()); - } + Error = true; + INSANE_MSG("Could not iwrite data! Error: %s", strerror(errno)); close(); return 0; break; @@ -555,11 +552,8 @@ int Socket::Connection::iread(void * buffer, int len, int flags) { return 0; break; default: - if (errno != EPIPE) { - Error = true; - remotehost = strerror(errno); - DEBUG_MSG(DLVL_WARN, "Could not iread data! Error: %s", remotehost.c_str()); - } + Error = true; + INSANE_MSG("Could not iread data! Error: %s", strerror(errno)); close(); return 0; break;