Skip to content

Update Portalbase to use with so close() isn't needed #104

@DJDevon3

Description

@DJDevon3

Portalbase hasn't received the same treatment that adafruit_requests has with Connection Manager using with and still requires explicit close() for most cases. Needs to have the adafruit_requests treatment for fetch and other functions so explicit close isn't necessary to remember. It would be nice to have Portalbase take care of closing the connection automatically after use. It could help with cutting down retries, failed connections, and crashes from too many sockets open.

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