Re: SOMAXCONN (was Re: Solaris source code)

From: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
To: Bruce Momjian <pgman(at)candle(dot)pha(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:47:23
Message-ID: 11658.994801643@sss.pgh.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:
> I was thinking:

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

Not in config.h, you don't. Unless you want <sys/socket.h> (or
whichever header defines SOMAXCONN; how consistent is that across
platforms, anyway?) to be included by everything in the system ...

regards, tom lane

In response to

Browse pgsql-hackers by date

  From Date Subject
Next Message Tom Lane 2001-07-10 22:36:21 Re: SOMAXCONN (was Re: Solaris source code)
Previous Message Tom Lane 2001-07-10 21:42:37 Re: Time to read pg_hba.conf (Re: [PATCHES] [PATCH] Patch to make...)