re: pgbench stopped supporting large number of client connections on Windows - Mailing list pgsql-hackers

From Ranier Vilela
Subject re: pgbench stopped supporting large number of client connections on Windows
Date
Msg-id CAEudQAqP16wL-dea5p0EG-gvcjNx38XoAgWDa53=pioX=EtsGw@mail.gmail.com
Whole thread Raw
In response to pgbench stopped supporting large number of client connections on Windows  (Marina Polyakova <m.polyakova@postgrespro.ru>)
Responses Re: pgbench stopped supporting large number of client connections on Windows
List pgsql-hackers
Hi Marina,
Nice catch.

>rc/bin/pgbench/pgbench.c, the function add_socket_to_set:
>if (fd < 0 || fd >= FD_SETSIZE)
>{
>/*
>* Doing a hard exit here is a bit grotty, but it doesn't seem worth
>* complicating the API to make it less grotty.
>*/
>pg_log_fatal("too many client connections for select()");
>exit(1);
>}

It seems to me that the limit is hardcode in, src/backend/port/win32/socket.c

FD_SETSIZE * 2

that would be 2048?

regards,

Ranier Vilela

pgsql-hackers by date:

Previous
From: Jacob Champion
Date:
Subject: Re: Support for NSS as a libpq TLS backend
Next
From: Sergei Kornilov
Date:
Subject: Re: Allow some recovery parameters to be changed with reload