fix cosocket keepalive function
fix keep alive in cosocket