mirror of
https://github.com/yudai/gotty.git
synced 2025-12-26 12:18:49 +01:00
increase buffer size
This commit is contained in:
parent
7fb8f2c709
commit
40912fd6f7
2 changed files with 3 additions and 3 deletions
|
|
@ -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,
|
||||
},
|
||||
|
|
|
|||
|
|
@ -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 {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue