Removed wait_until_socket_is_readable(). Rely on socket timeout.