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

fix block in close() #11

Merged
merged 1 commit into from
Feb 14, 2020
Merged

fix block in close() #11

merged 1 commit into from
Feb 14, 2020

Conversation

richard78917
Copy link
Contributor

In case that close() is called while doing
read operation, the close() call is blocked and whole application
is stucked.

pynats/client.py Outdated Show resolved Hide resolved
@Gr1N
Copy link
Owner

Gr1N commented Feb 14, 2020

Hi and thank you for your contribution.

Please fix a few moments:

  1. Rebase your branch from master, I've fixed CI to run builds from PRs.
  2. Use [fix] as a prefix for your commit message.
  3. Update CHANGELOG.md using template: your_text, fix block in close() #11 by @richard78917

pynats/client.py Outdated Show resolved Hide resolved
In case that close() is called while doing
read operation, the close() call is blocked and whole application
is stucked. Shut-down of socket will resolve this issue and releases
thread blocked at readline().

Regression test for graceful shutdown also included.
@Gr1N
Copy link
Owner

Gr1N commented Feb 14, 2020

LGTM! Thank you for your contribution. I will release a new version of package this weekend.

@Gr1N Gr1N merged commit bb07ff9 into Gr1N:master Feb 14, 2020
@Gr1N
Copy link
Owner

Gr1N commented Feb 15, 2020

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