From 6d6114bf2625f6652ef41d2620833cb0b89196ae Mon Sep 17 00:00:00 2001 From: xtaci Date: Sun, 22 Sep 2019 20:51:39 +0800 Subject: [PATCH] update example json for smux v2 --- examples/local.json | 48 +++++++++++++++++++++++--------------------- examples/server.json | 2 ++ 2 files changed, 27 insertions(+), 23 deletions(-) diff --git a/examples/local.json b/examples/local.json index 5f12edc..c8f993c 100644 --- a/examples/local.json +++ b/examples/local.json @@ -1,25 +1,27 @@ { - "localaddr": ":2000", - "remoteaddr": "11.22.33.44:2000", - "key": "PASSWORD", - "crypt": "aes-128", - "mode": "fast3", - "mtu": 1400, - "sndwnd": 128, - "rcvwnd": 1024, - "datashard": 10, - "parityshard": 3, - "dscp": 46, - "nocomp": true, - "acknodelay": false, - "nodelay": 1, - "interval": 40, - "resend": 2, - "nc": 1, - "sockbuf": 16777217, - "smuxbuf": 16777217, - "keepalive": 10, - "autoexpire":1800, - "quiet":false, - "tcp":false + "localaddr": ":2000", + "remoteaddr": "11.22.33.44:2000", + "key": "PASSWORD", + "crypt": "aes-128", + "mode": "fast3", + "mtu": 1400, + "sndwnd": 128, + "rcvwnd": 1024, + "datashard": 10, + "parityshard": 3, + "dscp": 46, + "nocomp": true, + "acknodelay": false, + "nodelay": 1, + "interval": 40, + "resend": 2, + "nc": 1, + "sockbuf": 16777217, + "smuxver": 1, + "smuxbuf": 16777217, + "streambuf": 2097152, + "keepalive": 10, + "autoexpire": 1800, + "quiet": false, + "tcp": false } diff --git a/examples/server.json b/examples/server.json index 369ed2a..df6c1be 100644 --- a/examples/server.json +++ b/examples/server.json @@ -17,7 +17,9 @@ "resend": 2, "nc": 1, "sockbuf": 16777217, + "smuxver": 1, "smuxbuf": 16777217, + "streambuf": 2097152, "keepalive": 10, "pprof":false, "quiet":false,