Skip to content
This repository has been archived by the owner on Apr 27, 2020. It is now read-only.

Commit

Permalink
switch to smux version 1 and reduce smux io buffer size
Browse files Browse the repository at this point in the history
  • Loading branch information
IrineSistiana committed Feb 15, 2020
1 parent f2012b0 commit d2580b2
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions internal/core/config.go
Original file line number Diff line number Diff line change
Expand Up @@ -27,11 +27,12 @@ import (

var (
defaultSmuxConfig = &smux.Config{
Version: 1,
KeepAliveInterval: 10 * time.Second,
KeepAliveTimeout: 30 * time.Second,
MaxFrameSize: 16 * 1024,
MaxReceiveBuffer: 2048 * 1024,
MaxStreamBuffer: 512 * 1024,
MaxReceiveBuffer: 256 * 1024,
MaxStreamBuffer: 64 * 1024,
}
)

Expand Down

0 comments on commit d2580b2

Please sign in to comment.