Обсуждение: Re: SOMAXCONN (was Re: Solaris source code)

Поиск
Список
Период
Сортировка

Re: SOMAXCONN (was Re: Solaris source code)

От
Tom Lane
Дата:
Bruce Momjian <pgman@candle.pha.pa.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