added stat before socket connect to fix auto_push connection error