implement function server_impl::read_completely using another way