ethereum / ddht

Python implementation of Discovery V5 Protocol
MIT License
18 stars 16 forks source link

Drop old sessions #344

Closed carver closed 3 years ago

carver commented 3 years ago

What was wrong?

Old sessions never got dropped. Also, when binding to loopback addresses, ddht would crash when trying to send to non-local addresses.

How was it fixed?

Track session activity, and time out if peer doesn't send any messages for a while.

Explicitly warn the user about the localhost issue, instead of failing spectacularly later.

To-Do

Cute Animal Picture

put a cute animal picture link inside the parentheses