]> git.ipfire.org Git - thirdparty/tor.git/commitdiff
Use warn_too_many_conns() when accept() fails with a resource limit.
authorNick Mathewson <nickm@torproject.org>
Thu, 4 Sep 2008 15:22:55 +0000 (15:22 +0000)
committerNick Mathewson <nickm@torproject.org>
Thu, 4 Sep 2008 15:22:55 +0000 (15:22 +0000)
svn:r16751

src/or/connection.c

index 8049f6b3454b4b252ddd14bb3a641402dcc37413..b96ac15d29a67716e9f8ae7ca94a619af84728f4 100644 (file)
@@ -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. */