mirror of
https://github.com/valyala/fasthttp.git
synced 2026-06-23 17:27:37 +03:00
17 lines
209 B
Go
17 lines
209 B
Go
package fasthttp
|
|
|
|
import (
|
|
"runtime"
|
|
"time"
|
|
)
|
|
|
|
func testTimeout(timeout time.Duration) time.Duration {
|
|
if raceEnabled {
|
|
timeout *= 5
|
|
}
|
|
if runtime.GOOS == "windows" {
|
|
timeout *= 2
|
|
}
|
|
return timeout
|
|
}
|