github.com/sagernet/sing-box@v1.2.7/docs/configuration/shared/multiplex.md (about) 1 ### Server Requirements 2 3 `sing-box` :) 4 5 ### Structure 6 7 ```json 8 { 9 "enabled": true, 10 "protocol": "smux", 11 "max_connections": 4, 12 "min_streams": 4, 13 "max_streams": 0 14 } 15 ``` 16 17 ### Fields 18 19 #### enabled 20 21 Enable multiplex. 22 23 #### protocol 24 25 Multiplex protocol. 26 27 | Protocol | Description | 28 |----------|------------------------------------| 29 | smux | https://github.com/xtaci/smux | 30 | yamux | https://github.com/hashicorp/yamux | 31 32 SMux is used by default. 33 34 #### max_connections 35 36 Maximum connections. 37 38 Conflict with `max_streams`. 39 40 #### min_streams 41 42 Minimum multiplexed streams in a connection before opening a new connection. 43 44 Conflict with `max_streams`. 45 46 #### max_streams 47 48 Maximum multiplexed streams in a connection before opening a new connection. 49 50 Conflict with `max_connections` and `min_streams`.