change some funcation names
close socket, and preconnect server to reduce latency
when host down, PutClientInFreeList too, may clear the list in Cron later