mirror of
https://github.com/NLnetLabs/unbound.git
synced 2025-12-20 23:00:56 -05:00
- Fix #1402: squelch invalid argument error for fd_set_block on windows.
git-svn-id: file:///svn/unbound/trunk@4306 be551aaa-1e26-0410-a405-d3ace91eadb9
This commit is contained in:
parent
64a5e6af4a
commit
d8960d2c55
2 changed files with 4 additions and 2 deletions
|
|
@ -9,6 +9,7 @@
|
|||
implemented causing TCP to fail. The fix allows fallback to regular
|
||||
TCP in this case and is also more robust for cases where connectx()
|
||||
fails for some reason.
|
||||
- Fix #1402: squelch invalid argument error for fd_set_block on windows.
|
||||
|
||||
10 August 2017: Wouter
|
||||
- Patch to show DNSCrypt status in help output, from Carsten
|
||||
|
|
|
|||
|
|
@ -114,6 +114,7 @@ fd_set_block(int s)
|
|||
#elif defined(HAVE_IOCTLSOCKET)
|
||||
unsigned long off = 0;
|
||||
if(ioctlsocket(s, FIONBIO, &off) != 0) {
|
||||
if(WSAGetLastError() != WSAEINVAL || verbosity >= 4)
|
||||
log_err("can't ioctlsocket FIONBIO off: %s",
|
||||
wsa_strerror(WSAGetLastError()));
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue