Made sockets less verbose.
This commit is contained in:
parent
65f7ac130e
commit
97975deede
1 changed files with 4 additions and 10 deletions
|
@ -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());
|
||||
}
|
||||
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());
|
||||
}
|
||||
INSANE_MSG("Could not iread data! Error: %s", strerror(errno));
|
||||
close();
|
||||
return 0;
|
||||
break;
|
||||
|
|
Loading…
Add table
Reference in a new issue