From: Daniel Stenberg <daniel@haxx.se>
To: "Kyle J. McKay" <mackyle@gmail.com>
Cc: Jeff King <peff@peff.net>, git@vger.kernel.org
Subject: Re: [BUG?] git http connection reuse
Date: Sun, 16 Feb 2014 13:18:52 +0100 (CET) [thread overview]
Message-ID: <alpine.DEB.2.00.1402161307160.10435@tvnag.unkk.fr> (raw)
In-Reply-To: <377DF3F4-1F9B-4CB0-A9BF-658E561F4349@gmail.com>
On Sat, 15 Feb 2014, Kyle J. McKay wrote:
> If pipelining is off (the default) and total connections is not 1 it sounds
> to me from the description above that the requests will be executed on
> separate connections until the maximum number of connections is in use and
> then there might be some reuse.
Not exactly. When about to do a request, libcurl will always try to find an
existing idle but open connection in its connection pool to re-use. With the
multi interface you can of course easily start N requests at once to the same
host and then they'll only re-use connections to the extent there are
connections to pick, otherwise it'll create new connections.
>> Daniel Stenberg (7 Jan 2014)
>> - ConnectionExists: fix NTLM check for new connection
> Looks like you're just lucky as that above change first appears in 7.35.0.
> But it seems there are some patches for older versions so they might be
> affected as well [2].
Right, the problem is there to make sure that a NTLM-auth connection with
different credentials aren't re-used. NTLM with its connection-oriented
authentication breaks the traditional HTTP paradigms and before this change
there was a risk that libcurl would wrongly re-use a NTLM connection that was
done with different credentials!
I suspect we introduced a regression here with that fix. I'll dig into this.
--
/ daniel.haxx.se
next prev parent reply other threads:[~2014-02-16 12:26 UTC|newest]
Thread overview: 11+ messages / expand[flat|nested] mbox.gz Atom feed top
2014-02-16 4:05 [BUG?] git http connection reuse Jeff King
2014-02-16 7:16 ` Kyle J. McKay
2014-02-16 12:18 ` Daniel Stenberg [this message]
2014-02-16 13:33 ` Daniel Stenberg
2014-02-17 23:47 ` Jeff King
2014-02-17 23:56 ` Jeff King
2014-02-18 7:13 ` Daniel Stenberg
2014-02-18 7:55 ` Jeff King
2014-02-18 8:20 ` Daniel Stenberg
2014-02-18 9:09 ` Daniel Stenberg
2014-02-18 10:34 ` http: never use curl_easy_perform Jeff King
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=alpine.DEB.2.00.1402161307160.10435@tvnag.unkk.fr \
--to=daniel@haxx.se \
--cc=git@vger.kernel.org \
--cc=mackyle@gmail.com \
--cc=peff@peff.net \
/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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.