Rony Cohen Rony Cohen -4 years ago 202
Python Question

Auto closing socket python

I wonder if when I shutdown my program , the socket I have made inside it close automatically or they take place in the memory ?
Thanks for your help !

Answer Source

If all the threads in your program terminate, the socket will be closed.

Recommended from our users: Dynamic Network Monitoring from WhatsUp Gold from IPSwitch. Free Download