Skip to content
This repository was archived by the owner on Aug 30, 2023. It is now read-only.

Set default timeout for transport http client #250

Merged
merged 1 commit into from
Apr 8, 2019
Merged

Set default timeout for transport http client #250

merged 1 commit into from
Apr 8, 2019

Conversation

r-cohen
Copy link
Contributor

@r-cohen r-cohen commented Apr 8, 2019

By default, the http.Client has a Timeout of 0, which means no timeout (infinite long lived connection). this is source of hang in high latency environment but also can be source of memory leaks. I suggest adding a default timeout to avoid this.

@kamilogorek kamilogorek merged commit 1498aff into getsentry:master Apr 8, 2019
@kamilogorek
Copy link
Contributor

Sounds reasonable. Thanks!

@r-cohen
Copy link
Contributor Author

r-cohen commented Apr 8, 2019

@kamilogorek thanks! have a pleasant day.

# for free to subscribe to this conversation on GitHub. Already have an account? #.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants