New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

error buffer not set if connection to multiple addresses fails #544

MoSal opened this Issue Nov 27, 2015 · 0 comments


None yet
2 participants
Copy link

MoSal commented Nov 27, 2015

Suppose you ask libcurl to resolve a hostname (e.g. to IPv6 addresses only. But you only have IPv4 connectivity. libcurl would correctly fail with CURLE_COULDNT_CONNECT. But the error buffer set by CURLOPT_ERRORBUFFER would be empty.

I think adding a failf() call above this line would work:

But I don't know if that's the right place to do it.

@bagder bagder closed this in 645ed11 Apr 8, 2016

@lock lock bot locked as resolved and limited conversation to collaborators May 7, 2018

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.