mirror of
https://github.com/httprunner/httprunner.git
synced 2026-09-05 15:37:35 +08:00
fix: android by selector
This commit is contained in:
@@ -98,7 +98,7 @@ func convertToHTTPClient(conn net.Conn) *http.Client {
|
||||
if err := tcpConn.SetKeepAlive(true); err != nil {
|
||||
log.Error().Err(err).Msg("set tcp keep alive failed")
|
||||
}
|
||||
if err := tcpConn.SetKeepAlivePeriod(5 * time.Second); err != nil {
|
||||
if err := tcpConn.SetKeepAlivePeriod(30 * time.Second); err != nil {
|
||||
log.Error().Err(err).Msg("set tcp keep alive period failed")
|
||||
}
|
||||
return &http.Client{
|
||||
|
||||
Reference in New Issue
Block a user