sing-box/docs/configuration/shared/multiplex.md

51 lines
831 B
Markdown
Raw Normal View History

### Server Requirements
`sing-box` :)
### Structure
```json
{
"enabled": true,
2022-08-04 01:11:39 +00:00
"protocol": "smux",
"max_connections": 4,
"min_streams": 4,
"max_streams": 0
}
```
### Fields
#### enabled
Enable multiplex.
2022-08-03 13:51:34 +00:00
#### protocol
Multiplex protocol.
| Protocol | Description |
|----------|------------------------------------|
| smux | https://github.com/xtaci/smux |
2022-08-04 01:11:39 +00:00
| yamux | https://github.com/hashicorp/yamux |
2022-08-03 13:51:34 +00:00
2022-08-04 01:11:39 +00:00
SMux is used by default.
2022-08-03 13:51:34 +00:00
#### max_connections
Maximum connections.
Conflict with `max_streams`.
#### min_streams
Minimum multiplexed streams in a connection before opening a new connection.
2022-08-11 02:06:10 +00:00
Conflict with `max_streams`.
#### max_streams
Maximum multiplexed streams in a connection before opening a new connection.
Conflict with `max_connections` and `min_streams`.