Add option to timeout the server waiting for the client by a variable amount of time