a thread safe close method
Currently, there are several issues with the library.
-
Closeis not thread safe. theisStreamClosedcannot protect a gorouting sending to a panic panel. ref: #33 -
Socket leaks. If the server responds with a 404, the
resp.Body.Closeis not called.
The changes should not affect any existing users.
ping @donovanhide
@donovanhide Please have a look at the PR.
This is too big a change to accept without added unit tests that prove current behaviour is not subtly altered.
It only changes the implementation of all the APIs not the API itself. So the existing test cases are exactly for that.
Sent from my iPhone
On Apr 12, 2018, at 18:34, Donovan Hide [email protected] wrote:
This is too big a change to accept without added unit tests that prove current behaviour is not subtly altered.
— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub, or mute the thread.