revert forever loop
socket.settimeout(1)