{"thread":{"id":"40202","subject":"git-send-email and IPv6-only host","startedAt":"2015-08-28T04:11:19Z","lastAt":"2015-08-28T17:32:59Z","messageCount":3,"participants":["Stéphane Graber","Junio C Hamano"],"isPatch":false,"patchVersion":null,"patchTotal":null},"messages":[{"id":"268822","messageId":"20150828041119.GP301234@dakara","threadId":"40202","inReplyTo":null,"subject":"git-send-email and IPv6-only host","fromName":"Stéphane Graber","fromEmail":"stgraber@stgraber.org","sentAt":"2015-08-28T04:11:19Z","receivedAt":"2015-08-28T04:11:19Z","isPatch":false,"sender":{"key":"stgraber@stgraber.org","avatar":null},"body":"Hello,\n\nI've recently switched my home network to be IPv6-only, using NAT64 and\nDNS64 to reach IPv4 hosts. Pretty much everything I use day to day just\nkept on working fine, but I keep finding some small problems here and\nthere, mostly to do with perl software.\n\nOne of those is git-send-email which isn't capable of talking to an IPv6\nSMTP server.\n\nI've locally patched my git-send-email to add:\n\n    require Net::INET6Glue::INET_is_INET6;\n\nThis seems to be the magic bullet for all IPv6 problems I've had with\nperl software, though I'm not sure whether this is an acceptable fix\nupstream as this does bring an additional dependency to git-send-email.\nMaybe making this require conditional somehow would work, not that I'd\nknow how as I've not touched perl in over a decade.\n\nAnyway, I figured that short of having a branch I'm happy with for\ngit-send-email, I'd at least send you a bug report along with my current\nfix/workaround.\n\nThanks!\n\nStéphane\n"},{"id":"268853","messageId":"xmqqbndr2uwi.fsf@gitster.mtv.corp.google.com","threadId":"40202","inReplyTo":"20150828041119.GP301234@dakara","subject":"Re: git-send-email and IPv6-only host","fromName":"Junio C Hamano","fromEmail":"gitster@pobox.com","sentAt":"2015-08-28T17:19:09Z","receivedAt":"2015-08-28T17:19:09Z","isPatch":false,"sender":{"key":"gitster@pobox.com","avatar":"https://avatars.githubusercontent.com/u/54884?v=4"},"body":"Stéphane Graber <stgraber@stgraber.org> writes:\n\n> Hello,\n>\n> I've recently switched my home network to be IPv6-only, using NAT64 and\n> DNS64 to reach IPv4 hosts. Pretty much everything I use day to day just\n> kept on working fine, but I keep finding some small problems here and\n> there, mostly to do with perl software.\n>\n> One of those is git-send-email which isn't capable of talking to an IPv6\n> SMTP server.\n>\n> I've locally patched my git-send-email to add:\n>\n>     require Net::INET6Glue::INET_is_INET6;\n>\n> This seems to be the magic bullet for all IPv6 problems I've had with\n> perl software, though I'm not sure whether this is an acceptable fix\n> upstream as this does bring an additional dependency to git-send-email.\n\nI wonder what happens if you 'require' that Glue on a host that is\nnot IPv6-only.\n\nWhat I am trying to get at is if what that Glue thing does is an\nacceptable thing to do in the Net::* Perl modules (e.g. Net::SMTP\nand Net::SMTP::SSL that we use), i.e., what INET6Glue does to work\naround issues in Net::* is a problem Net::* Perl modules should be\nsolving for the users of these modules.\n\nAfter all, it is madness to ask all packages that use Net::*\ninfrastructure, like git-send-email, to 'require' an extra module.\n\nThanks.\n"},{"id":"268856","messageId":"20150828173259.GS301234@dakara","threadId":"40202","inReplyTo":"xmqqbndr2uwi.fsf@gitster.mtv.corp.google.com","subject":"Re: git-send-email and IPv6-only host","fromName":"Stéphane Graber","fromEmail":"stgraber@stgraber.org","sentAt":"2015-08-28T17:32:59Z","receivedAt":"2015-08-28T17:32:59Z","isPatch":false,"sender":{"key":"stgraber@stgraber.org","avatar":null},"body":"On Fri, Aug 28, 2015 at 10:19:09AM -0700, Junio C Hamano wrote:\n> Stéphane Graber <stgraber@stgraber.org> writes:\n> \n> > Hello,\n> >\n> > I've recently switched my home network to be IPv6-only, using NAT64 and\n> > DNS64 to reach IPv4 hosts. Pretty much everything I use day to day just\n> > kept on working fine, but I keep finding some small problems here and\n> > there, mostly to do with perl software.\n> >\n> > One of those is git-send-email which isn't capable of talking to an IPv6\n> > SMTP server.\n> >\n> > I've locally patched my git-send-email to add:\n> >\n> >     require Net::INET6Glue::INET_is_INET6;\n> >\n> > This seems to be the magic bullet for all IPv6 problems I've had with\n> > perl software, though I'm not sure whether this is an acceptable fix\n> > upstream as this does bring an additional dependency to git-send-email.\n> \n> I wonder what happens if you 'require' that Glue on a host that is\n> not IPv6-only.\n> \n> What I am trying to get at is if what that Glue thing does is an\n> acceptable thing to do in the Net::* Perl modules (e.g. Net::SMTP\n> and Net::SMTP::SSL that we use), i.e., what INET6Glue does to work\n> around issues in Net::* is a problem Net::* Perl modules should be\n> solving for the users of these modules.\n> \n> After all, it is madness to ask all packages that use Net::*\n> infrastructure, like git-send-email, to 'require' an extra module.\n> \n> Thanks.\n\nThe require is perfectly safe to do on an IPv4-only machine. My\nunderstanding is that it basically replaces any call to gethostbyname\nand hardcoded AF_INET sockets to instead using getaddrinfo and iterating\nthrough the results, therefore covering all the socket families.\n\nI indeed find it very weird that perl itself hasn't just done that in\nthe main networking module, but it's something that's been an issue for\nyears now (I first experimented with IPv6-only in 2010) and doesn't seem\nto be improving at all.\n\nNote that most other languages seem to have resolved that issue by now\nso I'm unsure why perl appears to be lagging behind there...\n\nStéphane\n"}]}