Skip to content

Commit

Permalink
Lower log level for benign socket errors
Browse files Browse the repository at this point in the history
  • Loading branch information
ShadowNinja authored and kwolekr committed Oct 14, 2015
1 parent 96cc5b3 commit 4236792
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions src/socket.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 4236792

Please sign in to comment.