diff options
author | Nick Mathewson <nickm@torproject.org> | 2008-09-04 15:22:55 +0000 |
---|---|---|
committer | Nick Mathewson <nickm@torproject.org> | 2008-09-04 15:22:55 +0000 |
commit | 3f2b7078d224431b38528074a17c800f518264d4 (patch) | |
tree | ad047792cffc410b957511c769cd095a28ed2993 /src/or/connection.c | |
parent | 8dd5a3d8301e15d96f39e5c1b53347ed2b340249 (diff) | |
download | tor-3f2b7078d224431b38528074a17c800f518264d4.tar.gz tor-3f2b7078d224431b38528074a17c800f518264d4.zip |
Use warn_too_many_conns() when accept() fails with a resource limit.
svn:r16751
Diffstat (limited to 'src/or/connection.c')
-rw-r--r-- | src/or/connection.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/src/or/connection.c b/src/or/connection.c index 8049f6b345..b96ac15d29 100644 --- a/src/or/connection.c +++ b/src/or/connection.c @@ -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. */ |