fix truncate message since failed has 0 sendlen