Skip to content

Commit cbf31a4

Browse files
committed
[erts] Increase number of connections epmd can handle on Windows
FD_SETSIZE increased from 64 to 1024. The change in #10029 (OTP-19702) caused maximum amount of open connections for epmd to be reached for some test cases connecting a large amount of nodes at the same time. This since selection of dist module was parallelized which caused more "port please" requests to be issued in parallel to epmd.
1 parent 0418c10 commit cbf31a4

File tree

1 file changed

+12
-1
lines changed

1 file changed

+12
-1
lines changed

erts/epmd/src/epmd_int.h

Lines changed: 12 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,9 @@
22
/*
33
* %CopyrightBegin%
44
*
5-
* Copyright Ericsson AB 1998-2021. All Rights Reserved.
5+
* SPDX-License-Identifier: Apache-2.0
6+
*
7+
* Copyright Ericsson AB 1998-2025. All Rights Reserved.
68
*
79
* Licensed under the Apache License, Version 2.0 (the "License");
810
* you may not use this file except in compliance with the License.
@@ -28,6 +30,15 @@
2830
#ifdef __WIN32__
2931
#define NO_SYSCONF
3032
#define NO_DAEMON
33+
34+
/*
35+
* Increase FD_SETSIZE from 64 to 1024 by defining it before including
36+
* <winsock2.h>.
37+
*
38+
* https://learn.microsoft.com/en-us/windows/win32/winsock/maximum-number-of-sockets-supported-2
39+
*/
40+
#define FD_SETSIZE 1024
41+
3142
#endif
3243

3344
/* ************************************************************************ */

0 commit comments

Comments
 (0)