Re: Who is maintainer of kerberos/heimdall/sendmail?

2001-04-12 Thread Makoto MATSUSHITA


tlambert They appear to use SOMAXCONN, incorrectly.

Do you specify which files for sendmail(8) use SOMAXCONN ?

There is src/contrib/sendmail/libmilter/main.c, but it is NOT a part
of sendmail(8) (and never be used in other components installed).

In sendmail, the default second argument of listen(2) should be '10'
which is defined statically. You can change with 'DaemonPortOptions'
option (see /usr/share/doc/smm/08.sendmailop/paper.ascii.gz), IIRC.

***

Speaking of tweaking SOMAXCONN value in kernel config file, why 
/etc/sysctl.conf is not enough to do?

-- -
Makoto MATSUSHITA

To Unsubscribe: send mail to [EMAIL PROTECTED]
with "unsubscribe freebsd-current" in the body of the message



Re: Who is maintainer of kerberos/heimdall/sendmail?

2001-04-12 Thread Gregory Neil Shapiro

tlambert Who is the maintainer of this code?

I maintain sendmail.

tlambert They appear to use SOMAXCONN, incorrectly.

tlambert The value of SOMAXCONN is not valis; the valid limit is only
tlambert obtainable from sysctl (kern.ipc.somaxconn).

We (Sendmail) will look at integrating your fix into 8.12 (which will be
the first to actually use it -- it's #ifdef'ed out in 8.11).

To Unsubscribe: send mail to [EMAIL PROTECTED]
with "unsubscribe freebsd-current" in the body of the message



Re: Who is maintainer of kerberos/heimdall/sendmail?

2001-04-12 Thread Garrett Wollman

On Thu, 12 Apr 2001 09:24:46 -0700, Gregory Neil Shapiro [EMAIL PROTECTED] said:

tlambert The value of SOMAXCONN is not valis; the valid limit is only
tlambert obtainable from sysctl (kern.ipc.somaxconn).

 We (Sendmail) will look at integrating your fix into 8.12 (which will be
 the first to actually use it -- it's #ifdef'ed out in 8.11).

No code should ever examine kern.ipc.somaxconn; it is there for
sysadmin use only.  If the desire is to express ``the most this system
will allow'', the correct use is to pass the value -1 as the backlog
parameter to listen().  All systems which implement kern.ipc.somaxconn
also implement this feature.

-GAWollman


To Unsubscribe: send mail to [EMAIL PROTECTED]
with "unsubscribe freebsd-current" in the body of the message



Who is maintainer of kerberos/heimdall/sendmail?

2001-04-11 Thread Terry Lambert

Who is the maintainer of this code?

They appear to use SOMAXCONN, incorrectly.

The value of SOMAXCONN is not valis; the valid limit is only
obtainable from sysctl (kern.ipc.somaxconn).

Here is a function which does the right thing:

int
getsomaxconn( void)
{
char*name = "kern.ipc.somaxconn";
int somaxconn;
size_t  size = sizeof(somaxconn);

if( sysctlbyname(name, somaxconn,size, NULL, 0))  
somaxconn = SOMAXCONN;

return( somaxconn);
}

If someone wants something prettier (e.g. sysctl instead of
sysctlbyname), they are welcome to write it.


Terry Lambert
[EMAIL PROTECTED]
---
Any opinions in this posting are my own and not those of my present
or previous employers.

To Unsubscribe: send mail to [EMAIL PROTECTED]
with "unsubscribe freebsd-current" in the body of the message