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

Don't try to send through closed socket in NodeDiscovery #82

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

Conversation

Wolf480pl
Copy link

When stopping the services, and PeerManager is still alive after
NodeDiscovery was stopped, it may try to send some discovery messages.
This will cause DatagramServer.sendto to throw AttributeError, because
a closed DatagramServer doesn't have a socket attribute.

Prevent this, by checking if the DatagramServer is closed, and dropping
the message if it is.

When stopping the services, and PeerManager is still alive after
NodeDiscovery was stopped, it may try to send some discovery messages.
This will cause DatagramServer.sendto to throw AttributeError, because
a closed DatagramServer doesn't have a `socket` attribute.

Prevent this, by checking if the DatagramServer is closed, and dropping
the message if it is.
@coveralls
Copy link

Coverage Status

Coverage increased (+0.4%) to 88.749% when pulling cd7ffec on Wolf480pl:fix-closed-discovery-socket into e1ef07a on ethereum:develop.

3 similar comments
@coveralls
Copy link

Coverage Status

Coverage increased (+0.4%) to 88.749% when pulling cd7ffec on Wolf480pl:fix-closed-discovery-socket into e1ef07a on ethereum:develop.

@coveralls
Copy link

Coverage Status

Coverage increased (+0.4%) to 88.749% when pulling cd7ffec on Wolf480pl:fix-closed-discovery-socket into e1ef07a on ethereum:develop.

@coveralls
Copy link

Coverage Status

Coverage increased (+0.4%) to 88.749% when pulling cd7ffec on Wolf480pl:fix-closed-discovery-socket into e1ef07a on ethereum:develop.

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