|
| 1 | +From 47ca82473af8d77eb89732884542c719ccdd9312 Mon Sep 17 00:00:00 2001 |
| 2 | +From: Stefan Agner <stefan@agner.ch> |
| 3 | +Date: Thu, 29 Feb 2024 19:07:15 +0100 |
| 4 | +Subject: [PATCH] Linux: Increase number of endpoints |
| 5 | + |
| 6 | +Users run into endpoint limits, posting "Endpoint pool full" in various |
| 7 | +setups. This is likely caused by installations with many containers |
| 8 | +running or similar. |
| 9 | + |
| 10 | +Quadruple the amount of endpoints supported to make it less likely to |
| 11 | +appear. |
| 12 | +--- |
| 13 | + src/platform/Linux/InetPlatformConfig.h | 4 ++-- |
| 14 | + 1 file changed, 2 insertions(+), 2 deletions(-) |
| 15 | + |
| 16 | +diff --git a/src/platform/Linux/InetPlatformConfig.h b/src/platform/Linux/InetPlatformConfig.h |
| 17 | +index 3aab9a7b9b..02e664eddc 100644 |
| 18 | +--- a/src/platform/Linux/InetPlatformConfig.h |
| 19 | ++++ b/src/platform/Linux/InetPlatformConfig.h |
| 20 | +@@ -33,7 +33,7 @@ |
| 21 | + // ========== Platform-specific Configuration Overrides ========= |
| 22 | + |
| 23 | + #ifndef INET_CONFIG_NUM_TCP_ENDPOINTS |
| 24 | +-#define INET_CONFIG_NUM_TCP_ENDPOINTS 32 |
| 25 | ++#define INET_CONFIG_NUM_TCP_ENDPOINTS 128 |
| 26 | + #endif // INET_CONFIG_NUM_TCP_ENDPOINTS |
| 27 | + |
| 28 | + #ifndef IPV6_MULTICAST_IMPLEMENTED |
| 29 | +@@ -41,7 +41,7 @@ |
| 30 | + #endif |
| 31 | + |
| 32 | + #ifndef INET_CONFIG_NUM_UDP_ENDPOINTS |
| 33 | +-#define INET_CONFIG_NUM_UDP_ENDPOINTS 32 |
| 34 | ++#define INET_CONFIG_NUM_UDP_ENDPOINTS 128 |
| 35 | + #endif // INET_CONFIG_NUM_UDP_ENDPOINTS |
| 36 | + |
| 37 | + // On linux platform, we have sys/socket.h, so HAVE_SO_BINDTODEVICE should be set to 1 |
| 38 | +-- |
| 39 | +2.44.0 |
| 40 | + |
0 commit comments