Skip to content

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

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
DJDevon3 opened this issue Jan 23, 2025 · 0 comments
Open

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

DJDevon3 opened this issue Jan 23, 2025 · 0 comments

Comments

@DJDevon3
Copy link

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant