reset errno to 0 if able to coomunicate with a socket