From: Jeff King <peff@peff.net>
To: Daniel Stenberg <daniel@haxx.se>
Cc: Junio C Hamano <gitster@pobox.com>,
Johannes Schindelin <Johannes.Schindelin@gmx.de>,
kusmabite@gmail.com, git@vger.kernel.org,
msysgit@googlegroups.com
Subject: Re: [PATCH/RFC] http_init: only initialize SSL for https
Date: Sat, 16 Mar 2013 08:03:00 -0400 [thread overview]
Message-ID: <20130316120300.GA2626@sigill.intra.peff.net> (raw)
In-Reply-To: <alpine.DEB.2.00.1303151719170.32216@tvnag.unkk.fr>
On Fri, Mar 15, 2013 at 05:23:27PM +0100, Daniel Stenberg wrote:
> >Thanks, then we should stick to starting from ALL like everybody
> >else who followed the suggestion in the documentation. Do you have
> >recommendations on the conditional dropping of SSL?
>
> Not really, no.
>
> SSL initing is as has been mentioned alredy only relevant with
> libcurl if an SSL powered protocol is gonna be used, so if checking
> the URL for the protocol is enough to figure this out then sure that
> should work fine.
But are we correct in assuming that curl will barf if it gets a redirect
to an ssl-enabled protocol? My testing seems to say yes:
[in one terminal]
$ nc -lCp 5001 <<\EOF
HTTP/1.1 301
Location: https://github.com/peff/git.git
EOF
[in another, git compiled with Erik's patch]
$ git ls-remote http://localhost:5001
error: SSL: couldn't create a context: error:140A90A1:lib(20):func(169):reason(161) while accessing http://localhost:5001/info/refs?service=git-upload-pack
fatal: HTTP request failed
-Peff
--
--
*** Please reply-to-all at all times ***
*** (do not pretend to know who is subscribed and who is not) ***
*** Please avoid top-posting. ***
The msysGit Wiki is here: https://github.com/msysgit/msysgit/wiki - Github accounts are free.
You received this message because you are subscribed to the Google
Groups "msysGit" group.
To post to this group, send email to msysgit@googlegroups.com
To unsubscribe from this group, send email to
msysgit+unsubscribe@googlegroups.com
For more options, and view previous threads, visit this group at
http://groups.google.com/group/msysgit?hl=en_US?hl=en
---
You received this message because you are subscribed to the Google Groups "msysGit" group.
To unsubscribe from this group and stop receiving emails from it, send an email to msysgit+unsubscribe@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.
next prev parent reply other threads:[~2013-03-16 12:03 UTC|newest]
Thread overview: 21+ messages / expand[flat|nested] mbox.gz Atom feed top
2013-03-14 13:51 [PATCH/RFC] http_init: only initialize SSL for https Erik Faye-Lund
2013-03-14 13:56 ` Erik Faye-Lund
2013-03-14 15:23 ` Johannes Schindelin
2013-03-14 15:36 ` Erik Faye-Lund
2013-03-14 16:46 ` Junio C Hamano
2013-03-14 22:35 ` Johannes Schindelin
2013-03-14 22:45 ` Junio C Hamano
2013-03-14 23:00 ` Erik Faye-Lund
2013-03-15 10:08 ` Daniel Stenberg
2013-03-15 15:59 ` Junio C Hamano
2013-03-15 16:23 ` Daniel Stenberg
2013-03-16 12:03 ` Jeff King [this message]
2013-03-16 22:58 ` Daniel Stenberg
2013-03-17 17:41 ` Antoine Pelisse
2013-03-17 22:11 ` Daniel Stenberg
2013-03-17 22:27 ` Junio C Hamano
2013-03-18 10:38 ` Erik Faye-Lund
2013-03-18 12:14 ` Erik Faye-Lund
2013-03-14 16:04 ` Junio C Hamano
2013-03-14 16:57 ` Johannes Schindelin
2013-03-14 17:28 ` Junio C Hamano
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=20130316120300.GA2626@sigill.intra.peff.net \
--to=peff@peff.net \
--cc=Johannes.Schindelin@gmx.de \
--cc=daniel@haxx.se \
--cc=git@vger.kernel.org \
--cc=gitster@pobox.com \
--cc=kusmabite@gmail.com \
--cc=msysgit@googlegroups.com \
/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).