mirror of
https://github.com/XTLS/Xray-core.git
synced 2024-12-22 19:33:32 +02:00
Change WS upgraderBufferSize
due to https://github.com/gorilla/websocket/issues/223
This commit is contained in:
parent
6f092bd212
commit
69cbb4c47a
1 changed files with 2 additions and 2 deletions
|
@ -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…
Reference in a new issue