socket.error - workaround for Linux