From: Jonathan Nieder <jrnieder@gmail.com>
To: Steffen Ullrich <Steffen_Ullrich@genua.de>
Cc: Matthias-Christian Ott <ott@mirix.org>, git@vger.kernel.org
Subject: Re: git send-email doesn't work with IPv6 and STARTTLS
Date: Thu, 1 May 2014 13:55:09 -0700 [thread overview]
Message-ID: <20140501205509.GC9218@google.com> (raw)
In-Reply-To: <20140501204814.GA31294@genua.de>
Hi,
Steffen Ullrich wrote:
> git-send-mail does not use Net::SMTP directly for SSL support, but:
> - for direct connections (port 465) it uses Net::SMTP::SSL which just
> replaces the superclass if Net::SMTP with IO::Socket::SSL and thus
> implicitly supports IPv6 (because IO::Socket::SSL does)
> - for plain connections with SSL upgrade git-send-mail uses Net::SMTP for
> the initial connect and then does Net::SMTP::SSL->start_SSL (e.g.
> inherited from IO::Socket::SSL) to upgrade the socket to SSL.
>
> The problem here is that Net::SMTP does not support IPv6, but this
> should be solvable by using Net::INETGlue::INET_is_INET6 before loading
> Net::SMTP.
Sounds like a good change, fwiw. Even after Net::SMTP is fixed, it
would be useful as a way to make sure git works well with old versions
of Net::SMTP too.
> But all these tricks are just workarounds for missing IPv6 and SSL support
> directly in the Net::SMTP, Net::FTP and Net::POP3.
> I therefore repeat my proposal from RT#93823 (no response yet) to add
> transparent support for IPv6 and SSL into these modules. By transparent I
> mean that the features are available if the necessary modules are installed
> (e.g. IO::Socket::SSL for SSL and IO::Socket::INET6 or IO::Socket::IP for
> IPv6), but that it works like before if they are not installed.
>
> I don't have these patches yet, but most of the necessary code is already
> there in Net::SSLGlue and Net::INET6Glue.
> Would you accept and incorporate such patches?
Thanks for a kind offer. I am not Net::SMTP upstream, but I'd be
happy to work with upstream to get such patches applied.
Thanks for your work,
Jonathan
prev parent reply other threads:[~2014-05-01 20:55 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2014-04-30 19:43 git send-email doesn't work with IPv6 and STARTTLS Matthias-Christian Ott
2014-05-01 18:05 ` Jonathan Nieder
2014-05-01 20:44 ` Matthias-Christian Ott
2014-05-01 20:48 ` Steffen Ullrich
2014-05-01 20:55 ` Jonathan Nieder [this message]
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20140501205509.GC9218@google.com \
--to=jrnieder@gmail.com \
--cc=Steffen_Ullrich@genua.de \
--cc=git@vger.kernel.org \
--cc=ott@mirix.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).