gordonjcp / aprsmap

An APRS application using osm-gps-map
19 stars 4 forks source link

connection logic / retries is b0rked #12

Closed Elwell closed 13 years ago

Elwell commented 13 years ago

something needs refactoring in the order of initial connection

trying to connect to spain2.aprs2.net (one host, with A and AAAA records) fails rather than switching to next entry

* (aprsmap:17433): DEBUG: Map Provider: OpenStreetMap I (1) * Message: trying hostname: spain2.aprs2.net 10 1 6 \ Message: can't connect - Network is unreachable

\ ERROR **: failed to connect aborting... Aborted (core dumped)

I've altered g_message("trying hostname: %s %d %d %d", hostname, res->ai_family, res->ai_socktype, res->ai_protocol);

10 = ai_family ipv6, 2 = ipv4