Browse Source

Formatting changes

pull/305/head
Duke Leto 4 years ago
parent
commit
fc17988249
  1. 10
      src/net.cpp

10
src/net.cpp

@ -876,23 +876,17 @@ void SocketSendData(CNode *pnode)
} else {
if (nBytes <= 0) {
// error
//
if (bIsSSL)
{
if (nRet != WOLFSSL_ERROR_WANT_READ && nRet != WOLFSSL_ERROR_WANT_WRITE)
{
LogPrintf("ERROR: SSL_write %s; closing connection\n", wolfSSL_ERR_error_string(nRet, NULL));
pnode->CloseSocketDisconnect();
}
else
{
} else {
// preventive measure from exhausting CPU usage
//
MilliSleep(1); // 1 msec
}
}
else
{
} else {
if (nRet != WSAEWOULDBLOCK && nRet != WSAEMSGSIZE && nRet != WSAEINTR && nRet != WSAEINPROGRESS)
{
LogPrintf("ERROR: send %s; closing connection\n", NetworkErrorString(nRet));

Loading…
Cancel
Save