add timeout resend function

Signed-off-by: liuyao <lygoesstraight@163.com>
add test package

Signed-off-by: liuyao <lygoesstraight@163.com>