python udp client time out machinsm
问题 My client socket would suspend in receving data if the rand number generated in Server socket less than 4. I need to set up time out mechanism to allow client socket detect there is "time out" and then it would continue send message. After I run the server socket and then the client socket, an error message showed below: Traceback (most recent call last): File "E:\Studying\Python workspace\Client\src\Client.py", line 34, in <module> data , addr = client.recvfrom(1024) socket.timeout: timed