I want to use server.get_request()
to receive requests, but I want it to timeout after 500 milliseconds. Is this correct? Doesn't seem to work... thanks.
class UDPServer(SocketServer.BaseRequestHandler):
timeout = .500
if __name__ == "__main__":
server = SocketServer.UDPServer(('localhost', '12345'), UDPServer)
server.get_request()