ethereum / ddht

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

Use different approach for defensive timeouts #329

Closed pipermerriam closed 3 years ago

pipermerriam commented 3 years ago

What was wrong?

Still getting some timeout crashes I don't understand.

How was it fixed?

Change some of the defensive long timeouts to instead log an error so that they won't crash the app.

Changed some of the places where we raise a TooSlowError to instantiate the exception with a message so it is clearer where it is coming from.

Cute Animal Picture

animals-doing-human-things-26-1