[Xapian-tickets] [Xapian] #374: IPv6 support

Xapian nobody at xapian.org
Sun Jan 6 05:45:16 GMT 2019


#374: IPv6 support
----------------------------+------------------------------
 Reporter:  olly            |             Owner:  olly
     Type:  defect          |            Status:  closed
 Priority:  low             |         Milestone:  1.5.0
Component:  Backend-Remote  |           Version:  SVN trunk
 Severity:  normal          |        Resolution:  fixed
 Keywords:                  |        Blocked By:
 Blocking:                  |  Operating System:  All
----------------------------+------------------------------

Comment (by olly):

 The appveyor failures also seem to be due to `AI_V4MAPPED`-related
 limitations - Microsoft Windows defaults to setting `IPV6_V6ONLY` on IPv6
 sockets so `AI_V4MAPPED` gives you an mapped IPv4 address which then fails
 to work.

 You can unset `IPV6_V6ONLY` with `setsockopt()` but the constant isn't
 reliably defined in mingw headers.

 I've instead gone for specifying `AF_UNSPEC` in the hints to
 `getaddrinfo()` so we resolve IPv4 addresses as `AF_INET` (in
 260e18bc7b6219d6fff74e44b6eb652197ac4eec).

--
Ticket URL: <https://trac.xapian.org/ticket/374#comment:17>
Xapian <https://xapian.org/>
Xapian



More information about the Xapian-tickets mailing list