Skip to content

Conversation

@iandyh
Copy link

@iandyh iandyh commented Mar 23, 2018

Currently, there are several issues with the library.

  1. Close is not thread safe. the isStreamClosed cannot protect a gorouting sending to a panic panel. ref: Check if a stream is closed just before writing to the stream channels #33

  2. Socket leaks. If the server responds with a 404, the resp.Body.Close is not called.

The changes should not affect any existing users.

@iandyh
Copy link
Author

iandyh commented Apr 2, 2018

ping @donovanhide

@iandyh
Copy link
Author

iandyh commented Apr 12, 2018

@donovanhide Please have a look at the PR.

@donovanhide
Copy link
Owner

This is too big a change to accept without added unit tests that prove current behaviour is not subtly altered.

@iandyh
Copy link
Author

iandyh commented Apr 12, 2018 via email

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