client waits for server forever, but no recursion