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

Raise exception on socket disconnect #5

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

insideable
Copy link

This MR provides control over disconnected socket situation: by default readline from disconnected socket returns empty string, and NATS subscriber falls in endless loop with eating 100% CPU resource.

@codecov-io
Copy link

codecov-io commented Sep 5, 2019

Codecov Report

Merging #5 into master will increase coverage by 0.13%.
The diff coverage is 100%.

Impacted file tree graph

@@            Coverage Diff             @@
##           master       #5      +/-   ##
==========================================
+ Coverage    87.7%   87.83%   +0.13%     
==========================================
  Files           3        3              
  Lines         187      189       +2     
  Branches       19       20       +1     
==========================================
+ Hits          164      166       +2     
  Misses         14       14              
  Partials        9        9
Impacted Files Coverage Δ
pynats/client.py 89.2% <100%> (+0.12%) ⬆️

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 0bfe172...e228f08. Read the comment docs.

@insideable insideable force-pushed the raise-disconnect-exception branch 2 times, most recently from a3199a1 to b43cecc Compare September 5, 2019 10:36
@insideable insideable force-pushed the raise-disconnect-exception branch from b43cecc to e228f08 Compare September 5, 2019 10:41
@Gr1N Gr1N mentioned this pull request Oct 13, 2019
@codecov-commenter
Copy link

⚠️ Please install the 'codecov app svg image' to ensure uploads and comments are reliably processed by Codecov.

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 87.83%. Comparing base (0bfe172) to head (e228f08).
Report is 19 commits behind head on master.

❗ Your organization needs to install the Codecov GitHub app to enable full functionality.

Additional details and impacted files
@@            Coverage Diff             @@
##           master       #5      +/-   ##
==========================================
+ Coverage   87.70%   87.83%   +0.13%     
==========================================
  Files           3        3              
  Lines         187      189       +2     
  Branches       19       20       +1     
==========================================
+ Hits          164      166       +2     
  Misses         14       14              
  Partials        9        9              

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

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.

3 participants