pyduro icon indicating copy to clipboard operation
pyduro copied to clipboard

Bug: Socket not closed properly

Open freol35241 opened this issue 2 years ago • 1 comments

I see the following type of warnings in the logs when using pyduro

WARNING py.warnings /usr/local/lib/python3.11/site-packages/pyduro/actions/set.py:45: ResourceWarning: unclosed <socket.socket fd=4, family=2, type=2, proto=0, laddr=('0.0.0.0', 1901)>

Which seems to relate to the fact that the socket that is created in Frame.send does not get properly closed. See: https://docs.python.org/3/library/socket.html#socket.socket.close

freol35241 avatar Aug 20 '23 01:08 freol35241

I get similar ones too:

WARNING py.warnings /usr/local/lib/python3.11/site-packages/pyduro/actions/raw.py:38: ResourceWarning: unclosed <socket.socket fd=4, family=2, type=2, proto=0, laddr=('0.0.0.0', 1901)>
response = frame.send(burner_address, verbose=verbose)
WARNING py.warnings /usr/local/lib/python3.11/site-packages/pyduro/actions/get.py:79: ResourceWarning: unclosed <socket.socket fd=4, family=2, type=2, proto=0, laddr=('0.0.0.0', 1901)>
response = frame.send(burner_address, verbose=verbose)

victor987 avatar Oct 07 '24 10:10 victor987