simplegmail icon indicating copy to clipboard operation
simplegmail copied to clipboard

sockets left open

Open Dan1001 opened this issue 3 years ago • 0 comments

Hi,

This is a really useful project - thank you.

One small niggle: I have a script which checks my inbox every few minutes, but unfortunately simplegmail seems to leave sockets open each time, and so I get warnings like this:

WARNING | /usr/lib/python3.8/json/decoder.py:353: ResourceWarning:unclosed <ssl.SSLSocket fd=49, family=AddressFamily.AF_INET, type=SocketKind.SOCK_STREAM, proto=6, laddr=('192.168.1.117', 57974), raddr=('17.250.80.100', 443)>

I can't immediately see a close() method - is there something else I can do to tidy up?

thanks,

Dan

Dan1001 avatar Aug 10 '22 21:08 Dan1001