mirror of
https://gitlab.torproject.org/tpo/core/tor.git
synced 2025-02-24 14:51:11 +01:00
Use warn_too_many_conns() when accept() fails with a resource limit.
svn:r16751
This commit is contained in:
parent
8dd5a3d830
commit
3f2b7078d2
1 changed files with 1 additions and 2 deletions
|
@ -977,8 +977,7 @@ connection_handle_listener_read(connection_t *conn, int new_type)
|
|||
if (ERRNO_IS_ACCEPT_EAGAIN(e)) {
|
||||
return 0; /* he hung up before we could accept(). that's fine. */
|
||||
} else if (ERRNO_IS_ACCEPT_RESOURCE_LIMIT(e)) {
|
||||
log_notice(LD_NET,"accept failed: %s. Dropping incoming connection.",
|
||||
tor_socket_strerror(e));
|
||||
warn_too_many_conns();
|
||||
return 0;
|
||||
}
|
||||
/* else there was a real error. */
|
||||
|
|
Loading…
Add table
Reference in a new issue