soket penutup python cara yang bagus
from contextlib import closing
try:
with closing(sock):
sock.shutdown()
except OSError:
pass
Puzzled Puffin