summaryrefslogtreecommitdiff
path: root/usr.sbin/smtpd/smtpd.c
diff options
context:
space:
mode:
authorEric Faurot <eric@cvs.openbsd.org>2014-02-04 09:05:07 +0000
committerEric Faurot <eric@cvs.openbsd.org>2014-02-04 09:05:07 +0000
commit7371140cd578c1630d5af9d9fd2ee1e474ac9cfd (patch)
treebe2d2c4af9e846d9a33bca54421eb676d128530e /usr.sbin/smtpd/smtpd.c
parenta2879f764f430688184421c2cac8b6ac205fdd22 (diff)
get rid of fdlimit()
Diffstat (limited to 'usr.sbin/smtpd/smtpd.c')
-rw-r--r--usr.sbin/smtpd/smtpd.c17
1 files changed, 1 insertions, 16 deletions
diff --git a/usr.sbin/smtpd/smtpd.c b/usr.sbin/smtpd/smtpd.c
index fb14c68885f..3fdd9c807a3 100644
--- a/usr.sbin/smtpd/smtpd.c
+++ b/usr.sbin/smtpd/smtpd.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: smtpd.c,v 1.208 2013/12/26 17:25:32 eric Exp $ */
+/* $OpenBSD: smtpd.c,v 1.209 2014/02/04 09:05:06 eric Exp $ */
/*
* Copyright (c) 2008 Gilles Chehade <gilles@poolp.org>
@@ -852,21 +852,6 @@ fork_peers(void)
{
tree_init(&children);
- /*
- * Pick descriptor limit that will guarantee impossibility of fd
- * starvation condition. The logic:
- *
- * Treat hardlimit as 100%.
- * Limit smtp to 50% (inbound connections)
- * Limit mta to 50% (outbound connections)
- * Limit mda to 50% (local deliveries)
- * In all three above, compute max session limit by halving the fd
- * limit (50% -> 25%), because each session costs two fds.
- * Limit queue to 100% to cover the extreme case when tons of fds are
- * opened for all four possible purposes (smtp, mta, mda, bounce)
- */
- fdlimit(0.5);
-
init_pipes();
child_add(queue(), CHILD_DAEMON, proc_title(PROC_QUEUE));