I have a Thread that has a socket that waits for message using:
message, addr = s.recvfrom(268)
Is there to have an exception handler that after a certain time, it will time out and do something else?
For reference I am implementing a token ring in python using sockets and threads.
You need to call settimeout. You can catch
socket.errorto detect timeouts.