Change WS upgraderBufferSize

due to https://github.com/gorilla/websocket/issues/223
pull/2776/head
风扇滑翔翼 1 year ago committed by yuhan6665
parent 6f092bd212
commit 69cbb4c47a

@ -28,8 +28,8 @@ type requestHandler struct {
var replacer = strings.NewReplacer("+", "-", "/", "_", "=", "")
var upgrader = &websocket.Upgrader{
ReadBufferSize: 4 * 1024,
WriteBufferSize: 4 * 1024,
ReadBufferSize: 0,
WriteBufferSize: 0,
HandshakeTimeout: time.Second * 4,
CheckOrigin: func(r *http.Request) bool {
return true

Loading…
Cancel
Save