mirror of
https://github.com/1Panel-dev/1Panel.git
synced 2026-01-12 18:15:30 +08:00
fix: adjust WebSocket buffer sizes in terminal and host API (#11094)
This commit is contained in:
parent
dc9fdf897b
commit
e32a11910e
2 changed files with 4 additions and 4 deletions
|
|
@ -228,8 +228,8 @@ func wshandleError(ws *websocket.Conn, err error) bool {
|
|||
}
|
||||
|
||||
var upGrader = websocket.Upgrader{
|
||||
ReadBufferSize: 1024,
|
||||
WriteBufferSize: 1024 * 1024 * 10,
|
||||
ReadBufferSize: 4096,
|
||||
WriteBufferSize: 16384,
|
||||
CheckOrigin: func(r *http.Request) bool {
|
||||
return true
|
||||
},
|
||||
|
|
|
|||
|
|
@ -327,8 +327,8 @@ func (b *BaseApi) WsSsh(c *gin.Context) {
|
|||
}
|
||||
|
||||
var upGrader = websocket.Upgrader{
|
||||
ReadBufferSize: 1024,
|
||||
WriteBufferSize: 1024 * 1024 * 10,
|
||||
ReadBufferSize: 4096,
|
||||
WriteBufferSize: 16384,
|
||||
CheckOrigin: func(r *http.Request) bool {
|
||||
return true
|
||||
},
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue