Remove the pipe_idx variable from rpc_pipe_client