increase buffer size

This commit is contained in:
Onur Yılmaz 2021-09-14 20:22:01 +00:00 committed by GitHub
parent 7fb8f2c709
commit 40912fd6f7
2 changed files with 3 additions and 3 deletions

View file

@ -73,8 +73,8 @@ func New(factory Factory, options *Options) (*Server, error) {
options: options,
upgrader: &websocket.Upgrader{
ReadBufferSize: 1024,
WriteBufferSize: 1024,
ReadBufferSize: 4096,
WriteBufferSize: 4096,
Subprotocols: webtty.Protocols,
CheckOrigin: originChekcer,
},

View file

@ -42,7 +42,7 @@ func New(masterConn Master, slave Slave, options ...Option) (*WebTTY, error) {
columns: 0,
rows: 0,
bufferSize: 1024,
bufferSize: 4096,
}
for _, option := range options {