mirror of
https://github.com/NLnetLabs/unbound.git
synced 2025-12-31 11:59:36 -05:00
accept errors not printed any more.
git-svn-id: file:///svn/unbound/trunk@1370 be551aaa-1e26-0410-a405-d3ace91eadb9
This commit is contained in:
parent
27f450e8fa
commit
576fe7d4c8
2 changed files with 7 additions and 4 deletions
|
|
@ -1,3 +1,6 @@
|
|||
21 November 2008: Wouter
|
||||
- fixed tcp accept, errors were printed when they should not.
|
||||
|
||||
20 November 2008: Wouter
|
||||
- fixup fatal error due to faulty error checking after tcp accept.
|
||||
- add check in rlimit to avoid integer underflow.
|
||||
|
|
|
|||
|
|
@ -554,15 +554,15 @@ int comm_point_perform_accept(struct comm_point* c,
|
|||
if(new_fd == -1) {
|
||||
#ifndef USE_WINSOCK
|
||||
/* EINTR is signal interrupt. others are closed connection. */
|
||||
if( errno != EINTR
|
||||
if( errno == EINTR || errno == EAGAIN
|
||||
#ifdef EWOULDBLOCK
|
||||
&& errno != EWOULDBLOCK
|
||||
|| errno == EWOULDBLOCK
|
||||
#endif
|
||||
#ifdef ECONNABORTED
|
||||
&& errno != ECONNABORTED
|
||||
|| errno == ECONNABORTED
|
||||
#endif
|
||||
#ifdef EPROTO
|
||||
&& errno != EPROTO
|
||||
|| errno == EPROTO
|
||||
#endif /* EPROTO */
|
||||
)
|
||||
return -1;
|
||||
|
|
|
|||
Loading…
Reference in a new issue