socket de clôture python bon moyen
from contextlib import closing
try:
with closing(sock):
sock.shutdown()
except OSError:
pass
Puzzled Puffin