Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

a thread safe close method #37

Open
wants to merge 2 commits into
base: master
Choose a base branch
from
Open

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