Skip to content

SSL handshake failures are not caught #67

Closed
@hierophect

Description

@hierophect

In the request method, while attempting to send a request, only _SendFailed exceptions are caught and all others (such as a Failed SSL handshake, which may occur after too much time has elapsed between requests) are ignored. This then leads to recv or recv_into being run on an invalid connection, resulting in an exception and potentially a socket leak.

This was discovered while debugging adafruit/circuitpython#4061, but does not wholly fix the issue as the code will then run into issue #66. May be related to #63.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions