diff --git a/transport/internet/websocket/dialer.go b/transport/internet/websocket/dialer.go index 3386af82..bd49b228 100644 --- a/transport/internet/websocket/dialer.go +++ b/transport/internet/websocket/dialer.go @@ -35,8 +35,8 @@ func dialWebsocket(ctx context.Context, dest net.Destination) (net.Conn, error) NetDial: func(network, addr string) (net.Conn, error) { return internet.DialSystem(ctx, src, dest) }, - ReadBufferSize: 32 * 1024, - WriteBufferSize: 32 * 1024, + ReadBufferSize: 8 * 1024, + WriteBufferSize: 8 * 1024, HandshakeTimeout: time.Second * 8, } diff --git a/transport/internet/websocket/hub.go b/transport/internet/websocket/hub.go index 048df815..196624b2 100644 --- a/transport/internet/websocket/hub.go +++ b/transport/internet/websocket/hub.go @@ -22,8 +22,8 @@ type requestHandler struct { } var upgrader = &websocket.Upgrader{ - ReadBufferSize: 32 * 1024, - WriteBufferSize: 32 * 1024, + ReadBufferSize: 8 * 1024, + WriteBufferSize: 8 * 1024, HandshakeTimeout: time.Second * 8, }