rpc fix nio buffer read bug