Closed felixonmars closed 4 years ago
Sorry for the very late reply.
I tried reproducing this but I couldn't. If you can still reproduce it, what version of libcurl and what DNS resolver are you using?
I managed to reproduce something similar to what you reported. In both cases, the problem seems to be that cpuminer always ends up using the socket that was created last. This is an issue, for instance, if curl attempts to connect to both IPv6 and IPv4 addresses simultaneously, as happens with the "Happy Eyeballs" algorithm, and the latter attempt fails.
I believe this can be fixed by simply obtaining the socket via CURLINFO_ACTIVESOCKET
, which is available since curl 7.45.0.
Many thanks!
I am trying to connect to a pool server, the domain resolves to both IPv4 and IPv6. However it is not possible to connect if I don't have IPv6 locally. The -P log looks like the following:
However it connects and runs successfully with either the IPv4 address directly or a domain that resolves only to the IPv4 address.