Skip to content
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

SSL ResourceWarning thrown during normal operation #54

Open
0xMochan opened this issue Mar 28, 2024 · 0 comments
Open

SSL ResourceWarning thrown during normal operation #54

0xMochan opened this issue Mar 28, 2024 · 0 comments
Labels
bug Something isn't working

Comments

@0xMochan
Copy link
Collaborator

0xMochan commented Mar 28, 2024

Describe the bug
Normally use Subgrounds via async or sync interface (using query grouping or not) and observe ResourceWarnings.

Expected behavior
No ResourceWarning.

Screenshots

sys:1: ResourceWarning: unclosed <ssl.SSLSocket fd=1588, family=23, type=1, proto=0, laddr=('local_address'), raddr=('remote_address')>

Additional context
This pesky problem was introduced during the async aubgrounds update. It can be safely ignored and even filterd out via the warnings module but ideally we don't have this lingering around.

import warnings                                                           
                                                                              
warnings.filterwarnings('ignore', category=ResourceWarning)

(Fixes #52)

  1. Figure out it's correlation between sync and async mode
  • I have a feeling it's because query grouping is great for async but a bit weird for sync when using the httpx library.
  1. Fix it for each mode
@0xMochan 0xMochan added the bug Something isn't working label Mar 28, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant