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

The echo server thread in test_ssl had unnoticed errors #214

Merged
merged 3 commits into from
Jun 15, 2017

Conversation

njsmith
Copy link
Member

@njsmith njsmith commented Jun 13, 2017

This commit

  • Fixes the problem (by ignoring BrokenPipeError after receiving a
    close_notify, necessary because of our decision in 8b0a252 to
    close the socket immediately after sending close_notify).

  • Changes how we run the server thread so that errors can't pass
    unnoticed in the future, but will instead propagate back into the
    main thread.

This commit

- Fixes the problem (by ignoring BrokenPipeError after receiving a
  close_notify, necessary because of our decision in 8b0a252 to
  close the socket immediately after sending close_notify).

- Changes how we run the server thread so that errors can't pass
  unnoticed in the future, but will instead propagate back into the
  main thread.
@codecov
Copy link

codecov bot commented Jun 14, 2017

Codecov Report

Merging #214 into master will increase coverage by <.01%.
The diff coverage is 100%.

Impacted file tree graph

@@            Coverage Diff             @@
##           master     #214      +/-   ##
==========================================
+ Coverage   99.06%   99.06%   +<.01%     
==========================================
  Files          63       63              
  Lines        8407     8424      +17     
  Branches      606      609       +3     
==========================================
+ Hits         8328     8345      +17     
  Misses         62       62              
  Partials       17       17
Impacted Files Coverage Δ
trio/tests/test_ssl.py 100% <100%> (ø) ⬆️
trio/_core/tests/tutil.py 100% <100%> (ø) ⬆️
trio/_core/tests/test_run.py 100% <100%> (ø) ⬆️

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 a7c3e5f...e976598. Read the comment docs.

@njsmith njsmith force-pushed the fix-ssl-test-threading branch from 04b5b90 to 7388a97 Compare June 15, 2017 05:21
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.

1 participant