change EIO to ENETDOWN for cURL errors