mirror of
https://github.com/edgelesssys/constellation.git
synced 2025-08-17 19:20:26 -04:00
fix http client concurrency issue in fetcher
This commit is contained in:
parent
0f942bafca
commit
04e87973ec
1 changed files with 1 additions and 1 deletions
|
@ -30,7 +30,7 @@ type Fetcher struct {
|
|||
// NewFetcher returns a new Fetcher.
|
||||
func NewFetcher() *Fetcher {
|
||||
return &Fetcher{
|
||||
httpc: http.DefaultClient,
|
||||
httpc: &http.Client{Transport: &http.Transport{DisableKeepAlives: true}}, // DisableKeepAlives fixes concurrency issue see https://stackoverflow.com/a/75816347
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue