adafruit / Adafruit_CircuitPython_Requests

Requests-like interface for web interfacing
MIT License
51 stars 36 forks source link

Catch OSError to avoid socket leak #70

Closed anecdata closed 3 years ago

anecdata commented 3 years ago

Catch OSError along with _SendFailed to avoid RuntimeError: Out of sockets caused by OSError: Failed SSL handshake

Background: https://github.com/adafruit/Adafruit_CircuitPython_Requests/issues/63#issuecomment-771650173

This should address #67

anecdata commented 3 years ago

Does anyone else want to weigh in... @brentru @tannewt ?