db: clarify peer disconnect diagnostics
This commit is contained in:
@@ -105,7 +105,10 @@ int CPeerBase::Recv()
|
||||
|
||||
if (bytes_read < 0)
|
||||
{
|
||||
sys_err("socket_read failed %s", strerror(errno));
|
||||
if (errno == 0)
|
||||
return -2;
|
||||
|
||||
sys_err("socket_read failed: host=%s fd=%d errno=%d (%s)", m_host, m_fd, errno, strerror(errno));
|
||||
return -1;
|
||||
}
|
||||
else if (bytes_read == 0)
|
||||
|
||||
Reference in New Issue
Block a user