将keepalive变量改为unsigned int