diff --git a/servefiles/servefiles.py b/servefiles/servefiles.py index 24a60ed..c92d67f 100644 --- a/servefiles/servefiles.py +++ b/servefiles/servefiles.py @@ -67,6 +67,7 @@ try: print("Sending URL(s) to " + ip + ":5000...") sock = socket.socket(socket.AF_INET, socket.SOCK_STREAM) + sock.settimeout(10) sock.connect((ip, 5000)) sock.sendall(struct.pack('!L', len(payloadBytes)) + payloadBytes) while len(sock.recv(1)) < 1: