github.com/inazumav/sing-box@v0.0.0-20230926072359-ab51429a14f1/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 "padding": false 15 } 16 ``` 17 18 ### Fields 19 20 #### enabled 21 22 Enable multiplex. 23 24 #### protocol 25 26 Multiplex protocol. 27 28 | Protocol | Description | 29 |----------|------------------------------------| 30 | smux | https://github.com/xtaci/smux | 31 | yamux | https://github.com/hashicorp/yamux | 32 | h2mux | https://golang.org/x/net/http2 | 33 34 h2mux is used by default. 35 36 #### max_connections 37 38 Maximum connections. 39 40 Conflict with `max_streams`. 41 42 #### min_streams 43 44 Minimum multiplexed streams in a connection before opening a new connection. 45 46 Conflict with `max_streams`. 47 48 #### max_streams 49 50 Maximum multiplexed streams in a connection before opening a new connection. 51 52 Conflict with `max_connections` and `min_streams`. 53 54 #### padding 55 56 !!! info 57 58 Requires sing-box server version 1.3-beta9 or later. 59 60 Enable padding. 61