Setting the MaxIdleConns is not enough, the MaxIdleConnsPerHost must be set as well. Otherwise, http.Transport will use the DefaultMaxIdleConnsPerHost, which is 2, and then the connection pool will have only 2 connection hold. |
||
|---|---|---|
| .. | ||
| access | ||
| buildinfo | ||
| config | ||
| encrypter | ||
| path | ||
| shell | ||
| token | ||
| transfer | ||
| tunnel | ||
| updater | ||
| generic_service.go | ||
| linux_service.go | ||
| macos_service.go | ||
| main.go | ||
| service_template.go | ||
| windows_service.go | ||