1
0
mirror of https://github.com/v2fly/v2ray-core.git synced 2026-01-06 09:15:37 -05:00

reduce websocket buffer size

This commit is contained in:
Darien Raymond
2017-01-27 13:50:38 +01:00
parent 0cf5087852
commit 55fb18b6e1
2 changed files with 4 additions and 4 deletions

View File

@@ -56,8 +56,8 @@ func wsDial(ctx context.Context, dest v2net.Destination) (*wsconn, error) {
dialer := websocket.Dialer{
NetDial: commonDial,
ReadBufferSize: 65536,
WriteBufferSize: 65536,
ReadBufferSize: 32 * 1024,
WriteBufferSize: 32 * 1024,
}
protocol := "ws"