Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
(PUP-11853) Wait for request completion before closing
Before this commit, puppet would attempt to `finish` a connection in the block passed to an `http.request` function. This will not work because `finish` sets the `@socket` to nil, and the net/http request assumes that the `@socket` is set for the duration of that function. With this change, we mark some state during the request function that indicates the connection should be closed after the completion of the `http.request`.
- Loading branch information