Skip to content

Commit

Permalink
Change WS upgraderBufferSize
Browse files Browse the repository at this point in the history
  • Loading branch information
Fangliding authored and yuhan6665 committed Nov 28, 2023
1 parent 6f092bd commit 69cbb4c
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions transport/internet/websocket/hub.go
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 69cbb4c

Please sign in to comment.