riptano / ccm

A script to easily create and destroy an Apache Cassandra cluster on localhost
Apache License 2.0
1.22k stars 303 forks source link

Closed open socket in check_socket_listening #593

Closed beltran closed 7 years ago

beltran commented 7 years ago

Hi,

Sometimes the socket is left opened here. I'm seeing a bunch of these logs in python3 every time the function is called:

ResourceWarning: unclosed <socket.socket fd=5, family=AddressFamily.AF_INET, type=SocketKind.SOCK_STREAM, proto=0, laddr=('0.0.0.0', 43928)>

ptnapoleon commented 7 years ago

Awesome fix, +1