Skip to content
Permalink
Browse files

Lower log level for benign socket errors

  • Loading branch information
ShadowNinja authored and kwolekr committed Oct 14, 2015
1 parent 96cc5b3 commit 4236792b87a68819c56f3b6f8bd44f48058dec57
Showing with 2 additions and 3 deletions.
  1. +2 −3 src/socket.cpp
@@ -571,9 +571,8 @@ bool UDPSocket::WaitData(int timeout_ms)
int e = WSAGetLastError();
dstream << (int) m_handle << ": WSAGetLastError()="
<< e << std::endl;
if(e == 10004 /* = WSAEINTR */ || e == 10009 /*WSAEBADF*/)
{
dstream << "WARNING: Ignoring WSAEINTR/WSAEBADF." << std::endl;
if (e == 10004 /* WSAEINTR */ || e == 10009 /* WSAEBADF */) {
infostream << "Ignoring WSAEINTR/WSAEBADF." << std::endl;
return false;
}
#endif

0 comments on commit 4236792

Please sign in to comment.