added more logs for resend_buf cleaning and checking