Re: pgbench stopped supporting large number of client connections on Windows
От | Ranier Vilela |
---|---|
Тема | Re: pgbench stopped supporting large number of client connections on Windows |
Дата | |
Msg-id | CAEudQAorvqwugKDVQaFEt7nq7-qGV=ovgTxsh=xppe7dUz4QMg@mail.gmail.com обсуждение исходный текст |
Ответ на | Re: pgbench stopped supporting large number of client connections on Windows (Marina Polyakova <m.polyakova@postgrespro.ru>) |
Список | pgsql-hackers |
Em sáb., 7 de nov. de 2020 às 14:55, Marina Polyakova <m.polyakova@postgrespro.ru> escreveu:
On 2020-11-06 23:54, Ranier Vilela wrote:
> Hi Marina,
Hello!
1) If you mean the function pgwin32_select in the file
src/backend/port/win32/socket.c, IIUC it is only used in the backend,
see src/include/port/win32_port.h:
#ifndef FRONTEND
<...>
#define select(n, r, w, e, timeout) pgwin32_select(n, r, w, e, timeout)
<...>
#endif /* FRONTEND */
Yes. My mistake, you right here.
2) It looks like FD_SETSIZE does not set a limit on the socket value on
Windows, see
https://docs.microsoft.com/en-us/windows/win32/winsock/maximum-number-of-sockets-supported-2
:
The maximum number of sockets that a Windows Sockets application can use
is not affected by the manifest constant FD_SETSIZE. This value defined
in the Winsock2.h header file is used in constructing the FD_SET
structures used with select function.
Correct.
It seems that the limit will be defined by compilation, before the inclusion of Winsock2.h.
Have you tried to define -DFD_SETSIZE=2048
Have you tried to define -DFD_SETSIZE=2048
best regards,
Ranier Vilela
В списке pgsql-hackers по дате отправления: