Permalink
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Browse files
Lower log level for benign socket errors
- Loading branch information
Showing
with
2 additions
and
3 deletions.
-
+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 |
|
|