mirror of
https://github.com/ScuroNeko/mtg.git
synced 2026-08-31 11:04:02 +03:00
Use TCP BBR in a best-effort mode
This small commits conditionally sets TCP BBR as a preferrable algorithm for TCP congestion control
This commit is contained in:
@@ -28,5 +28,7 @@ func setCommonSocketOptions(conn *net.TCPConn) error {
|
||||
return fmt.Errorf("cannot setup SO_REUSEADDR/PORT: %w", err)
|
||||
}
|
||||
|
||||
setCongestionControl(rawConn)
|
||||
|
||||
return nil
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user