Improve multiplexer

This commit is contained in:
世界
2022-08-03 21:51:34 +08:00
parent 8e4de29409
commit 03890151d7
13 changed files with 247 additions and 56 deletions

View File

@@ -7,6 +7,7 @@
```json
{
"enabled": true,
"protocol": "yamux",
"max_connections": 4,
"min_streams": 4,
"max_streams": 0
@@ -19,6 +20,17 @@
Enable multiplex.
#### protocol
Multiplex protocol.
| Protocol | Description |
|----------|------------------------------------|
| yamux | https://github.com/hashicorp/yamux |
| smux | https://github.com/xtaci/smux |
YAMux is used by default.
#### max_connections
Maximum connections.