add timeout over error code

Signed-off-by: xiehuc <xiehuc@gmail.com>