soket timeout python

socket.settimeout(5) # for 5 sec
BoomSlang Frikkie