disable some socket.error warning under Linux