My program always gets stuck for 30 seconds on
[DEBUG] SingleClientConnManager - Get connection for route HttpRoute[{}->http:
Further research suggests that this is due to ipv4 failure. Is there a way to get ipv4 on httpclient to solve the problem?
PS I think this is an IPv4 problem because curl -L04 http://foobar.com is an instant download, and curl -L06 http://foobar.com produces curl: (6) Couldn't resolve host 'foobar.com'
source share