cURL / Mailing Lists / curl-library / Single Mail


Re: CURLINFO_OS_ERRNO does not change its value after network reconnection

From: Michal Marek <>
Date: Wed, 15 Jul 2009 12:45:13 +0200 napsal(a):
> curl_easy_getinfo(sessionData->curlEasyHandle,CURLINFO_OS_ERRNO,
> &conStatus);
> The problem I am facing currently is that, once the systemException is
> thrown, next time if I try to connect and call f(), i get non zero
> conStatus even if I have plugged the cable back into the machine.

The errno value is set only on failure, you can't use it to determine
_whether_ something failed or not, only _how_ it failed (if you know
that it did fail).

Received on 2009-07-15