diff options
author | Gilles Chehade <gilles@cvs.openbsd.org> | 2008-11-10 00:22:06 +0000 |
---|---|---|
committer | Gilles Chehade <gilles@cvs.openbsd.org> | 2008-11-10 00:22:06 +0000 |
commit | 80e584cf06f38df3cbe640e8ca713db369236b4f (patch) | |
tree | dc6c345e1954dde34101fd0614ade439625e82f3 | |
parent | d8e77102eabfced259aa3d416f431d0c79539064 (diff) |
- make READ_BUF_SIZE a power of 2
-rw-r--r-- | usr.sbin/smtpd/smtpd.h | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/usr.sbin/smtpd/smtpd.h b/usr.sbin/smtpd/smtpd.h index 090b68d4a77..47db0295ccb 100644 --- a/usr.sbin/smtpd/smtpd.h +++ b/usr.sbin/smtpd/smtpd.h @@ -1,4 +1,4 @@ -/* $OpenBSD: smtpd.h,v 1.2 2008/11/05 12:14:45 sobrado Exp $ */ +/* $OpenBSD: smtpd.h,v 1.3 2008/11/10 00:22:05 gilles Exp $ */ /* * Copyright (c) 2008 Gilles Chehade <gilles@openbsd.org> @@ -21,12 +21,14 @@ #define MAX_LISTEN 16 #define STRLEN 1024 #define PROC_COUNT 8 -#define READ_BUF_SIZE 65535 +#define READ_BUF_SIZE 32768 #define MAX_NAME_SIZE 64 /* sizes include the tailing '\0' */ #define MAX_LOCALPART_SIZE 65 #define MAX_DOMAINPART_SIZE MAXHOSTNAMELEN + +/* return and forward path size */ #define MAX_PATH_SIZE 256 /*#define SMTPD_CONNECT_TIMEOUT (60)*/ |