set a timeout for the server.