Re: SOMAXCONN (was Re: Solaris source code)

From: Bruce Momjian <pgman(at)candle(dot)pha(dot)pa(dot)us>
To: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
Cc: Mathijs Brands <mathijs(at)ilse(dot)nl>, Nathan Myers <ncm(at)zembu(dot)com>, pgsql-hackers(at)postgresql(dot)org
Subject: Re: SOMAXCONN (was Re: Solaris source code)
Date: 2001-07-10 21:25:58
Message-ID: 200107102125.f6ALPwV10005@candle.pha.pa.us
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

> Bruce Momjian <pgman(at)candle(dot)pha(dot)pa(dot)us> writes:
> > Could we test SOMAXCONN and set PG_SOMAXCONN to 1000 only if SOMAXCONN1
> > is less than 1000?
>
> Why bother?
>
> If you've got some plausible scenario where 1000 is too small, we could
> just as easily make it 10000. I don't see the need for yet another
> configure test for this.

I was thinking:

#if SOMAXCONN >= 1000
#define PG_SOMAXCONN SOMAXCONN
#else
#define PG_SOMAXCONN 1000
#endif

--
Bruce Momjian | http://candle.pha.pa.us
pgman(at)candle(dot)pha(dot)pa(dot)us | (610) 853-3000
+ If your life is a hard drive, | 830 Blythe Avenue
+ Christ can be your backup. | Drexel Hill, Pennsylvania 19026

In response to

Responses

Browse pgsql-hackers by date

  From Date Subject
Next Message Vince Vielhaber 2001-07-10 21:31:32 Re: grant and SQL92
Previous Message Tom Lane 2001-07-10 21:24:36 Re: SOMAXCONN (was Re: Solaris source code)