Skip to content

Conversation

@alinVD
Copy link
Contributor

@alinVD alinVD commented Jul 19, 2019

Upon success, the body of the response is not read nor closed. This makes the connection hang until it times out. If lots of messages are logged, this behavior makes the process run out of file descriptors. The fix is a simple res.Body.Close() deferred so it is executed on all paths.

@ZachtimusPrime ZachtimusPrime merged commit f5369e7 into ZachtimusPrime:master Sep 9, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants