3 ms·I added a timeout using: receiving_socket.settimeout(1) and then caught the exception.by tony-allan 5y agoI added a timeout using: receiving_socket.settimeout(1) and then caught the exception.