packer/rpc: more logging and fix a bug with read buffer start point