forked from quic-go/quic-go
disable GSO unless QUIC_GO_ENABLE_GSO is set (#3934)
This commit is contained in:
@@ -39,8 +39,8 @@ func setDF(rawConn syscall.RawConn) (bool, error) {
|
||||
}
|
||||
|
||||
func maybeSetGSO(rawConn syscall.RawConn) bool {
|
||||
disable, _ := strconv.ParseBool(os.Getenv("QUIC_GO_DISABLE_GSO"))
|
||||
if disable {
|
||||
enable, _ := strconv.ParseBool(os.Getenv("QUIC_GO_ENABLE_GSO"))
|
||||
if !enable {
|
||||
return false
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user