Check for timeout before calling server.