[Author Prev][Author Next][Thread Prev][Thread Next][Author Index][Thread Index]
[or-cvs] r16751: {tor} Use warn_too_many_conns() when accept() fails with a resourc (tor/trunk/src/or)
Author: nickm
Date: 2008-09-04 11:22:55 -0400 (Thu, 04 Sep 2008)
New Revision: 16751
Modified:
tor/trunk/src/or/connection.c
Log:
Use warn_too_many_conns() when accept() fails with a resource limit.
Modified: tor/trunk/src/or/connection.c
===================================================================
--- tor/trunk/src/or/connection.c 2008-09-04 14:55:05 UTC (rev 16750)
+++ tor/trunk/src/or/connection.c 2008-09-04 15:22:55 UTC (rev 16751)
@@ -977,8 +977,7 @@
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. */