@@ -184,6 +184,7 @@ NodePass allows flexible configuration via URL query parameters. The following t
184184| ` mode ` | Run mode control | O | O | X |
185185| ` read ` | Data read timeout | O | O | X |
186186| ` rate ` | Bandwidth rate limit | O | O | X |
187+ | ` slot ` | Maximum connection limit | O | O | X |
187188
188189- O: Parameter is valid and recommended for configuration
189190- X: Parameter is not applicable and should be ignored
@@ -201,7 +202,7 @@ NodePass behavior can be fine-tuned using environment variables. Below is the co
201202
202203| Variable | Description | Default | Example |
203204| ----------| -------------| ---------| ---------|
204- | ` NP_SEMAPHORE_LIMIT ` | Maximum number of concurrent connections | 1024 | ` export NP_SEMAPHORE_LIMIT=2048 ` |
205+ | ` NP_SEMAPHORE_LIMIT ` | Signal channel buffer size | 1024 | ` export NP_SEMAPHORE_LIMIT=2048 ` |
205206| ` NP_UDP_DATA_BUF_SIZE ` | Buffer size for UDP packets | 8192 | ` export NP_UDP_DATA_BUF_SIZE=16384 ` |
206207| ` NP_HANDSHAKE_TIMEOUT ` | Timeout for handshake operations | 10s | ` export NP_HANDSHAKE_TIMEOUT=30s ` |
207208| ` NP_TCP_DIAL_TIMEOUT ` | Timeout for establishing TCP connections | 30s | ` export NP_TCP_DIAL_TIMEOUT=60s ` |
@@ -242,10 +243,10 @@ The connection pool parameters are important settings for performance tuning in
242243
243244#### Connection Management
244245
245- - ` NP_SEMAPHORE_LIMIT ` : Controls the maximum number of concurrent tunnel operations
246- - Too low: Rejected connections during traffic spikes
247- - Too high: Potential memory pressure from too many concurrent goroutines
248- - Recommended range: 1000-5000 for most applications, higher for high-throughput scenarios
246+ - ` NP_SEMAPHORE_LIMIT ` : Controls signal channel buffer size
247+ - Too small: May cause signal loss
248+ - Too large: Increased memory usage
249+ - Recommended range: 1000-5000
249250
250251### UDP Settings
251252
@@ -266,10 +267,9 @@ For applications relying heavily on UDP traffic:
266267For optimizing TCP connections:
267268
268269- ` NP_TCP_DIAL_TIMEOUT ` : Timeout for establishing TCP connections
269- - Default (10s ) is suitable for most network conditions
270+ - Default (30s ) is suitable for most network conditions
270271 - Increase for unstable network conditions
271272 - Decrease for applications that need quick connection success/failure determination
272- - Affects initial connection establishment phase
273273
274274### Pool Management Settings
275275
0 commit comments