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

Improove error handling during TLS handshake #263

Merged
merged 2 commits into from Jul 1, 2019

Conversation

spaceone
Copy link
Contributor

if client already disconnected immediately.

Traceback (most recent call last):
  File "/home/spaceone/git/circuits/circuits/core/manager.py", line 834, in processTask
    value = next(task)
  File "/home/spaceone/git/circuits/circuits/net/sockets.py", line 614, in _accept
    self._on_accept_done(newsock)
  File "/home/spaceone/git/circuits/circuits/net/sockets.py", line 636, in _on_accept_done
    self.fire(connect(sock, *sock.getpeername()))
  File "/usr/lib/python2.7/socket.py", line 228, in meth
    return getattr(self._sock,name)(*args)
error: [Errno 107] Transport endpoint is not connected

if client already disconnected immediately.

Traceback (most recent call last):
  File "/home/spaceone/git/circuits/circuits/core/manager.py", line 834, in processTask
    value = next(task)
  File "/home/spaceone/git/circuits/circuits/net/sockets.py", line 614, in _accept
    self._on_accept_done(newsock)
  File "/home/spaceone/git/circuits/circuits/net/sockets.py", line 636, in _on_accept_done
    self.fire(connect(sock, *sock.getpeername()))
  File "/usr/lib/python2.7/socket.py", line 228, in meth
    return getattr(self._sock,name)(*args)
error: [Errno 107] Transport endpoint is not connected
@codecov-io
Copy link

Codecov Report

Merging #263 into master will increase coverage by <.01%.
The diff coverage is 28.57%.

Impacted file tree graph

@@            Coverage Diff            @@
##           master    #263      +/-   ##
=========================================
+ Coverage   74.49%   74.5%   +<.01%     
=========================================
  Files          74      74              
  Lines        6665    6671       +6     
=========================================
+ Hits         4965    4970       +5     
- Misses       1700    1701       +1
Impacted Files Coverage Δ
circuits/net/sockets.py 79.93% <28.57%> (-0.66%) ⬇️
circuits/core/manager.py 93.77% <0%> (+0.38%) ⬆️
circuits/io/file.py 84.17% <0%> (+1.43%) ⬆️

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 00bede3...9578a9f. Read the comment docs.

@prologic prologic merged commit ea5f4aa into master Jul 1, 2019
@spaceone spaceone deleted the fix_error_handling_during_tls_handshake branch July 1, 2019 13:06
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.

None yet

3 participants