Fix Chrome 92 ERROR_CONNECTION_RESET

This commit is contained in:
Fan Jiang 2021-07-30 10:19:32 -04:00
parent 2a68c1152f
commit 904df64e3c

View File

@ -53,7 +53,7 @@ func NewHTTPSMuxer(listener net.Listener, timeout time.Duration) (*HTTPSMuxer, e
}
func readHandshake(rd io.Reader) (host string, err error) {
data := pool.GetBuf(1024)
data := pool.GetBuf(4096)
origin := data
defer pool.PutBuf(origin)