git.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: Tay Ray Chuan <rctay89@gmail.com>
To: Junio C Hamano <gitster@pobox.com>
Cc: "Martin Storsjö" <martin@martin.st>,
	git@vger.kernel.org, "Nicholas Miell" <nmiell@gmail.com>,
	gsky51@gmail.com, "Clemens Buchacher" <drizzd@aon.at>,
	"Mark Lodato" <lodatom@gmail.com>,
	"Johannes Schindelin" <Johannes.Schindelin@gmx.de>
Subject: Re: [PATCH/RFC] Allow curl to rewind the RPC read buffer
Date: Wed, 2 Dec 2009 10:32:34 +0800	[thread overview]
Message-ID: <be6fef0d0912011832k12eaa093o73b057ddf4ab866@mail.gmail.com> (raw)
In-Reply-To: <7vzl62zisy.fsf@alter.siamese.dyndns.org>

Hi,

On Wed, Dec 2, 2009 at 1:49 AM, Junio C Hamano <gitster@pobox.com> wrote:
> ... and if the current buffer isn't the first one, what do we do?
> [snip]
> What will this result in?  A failed request, then the user increases
> http.postBuffer, and re-runs the entire command?  I am not suggesting the
> code should do it differently (e.g.  retry with a larger buffer without
> having the user to help it).  At least not yet.  That is why my first
> question above was "what do we do?" and not "what should we do?".

I guess that by "we" you're referring to the "normal" users of git?

> I am primarily interested in _documenting_ the expected user experience in
> the failure case, so that people can notice the message, run "git grep" to
> find the above line and then run "git blame" to find the commit to read
> its log message to understand what is going on.

Yes, the code will just fail. As you might suspect, the code won't
attempt to mitigate the failure by doing anything, and would require
intervention on the part of the user.

What the user could do to make this work:

1. Turn off multi-pass authentication and just go with Basic.

2. Allow for persistent curl sessions. In theory, we get a 401 the
first time when we send a GET for info/refs; subsequently, curl knows
what authentication to use, so the POST request *should* take place
without the need for rewinding. In theory.

3. Increase http.postBuffer size in the config.

-- 
Cheers,
Ray Chuan

  reply	other threads:[~2009-12-02  2:32 UTC|newest]

Thread overview: 28+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2009-10-02 17:28 HTTP NTLM Authentication gsky
2009-10-02 19:04 ` [PATCH] Use the best HTTP authentication method supported by the server Nicholas Miell
2009-11-27 15:41 ` [PATCH 0/2] http: allow multi-pass authentication Tay Ray Chuan
2009-04-14 21:56   ` [PATCH v2] Add an option for using any HTTP authentication scheme, not only basic Martin Storsjö
2009-04-14 20:52     ` [PATCH] " Martin Storsjö
2009-04-14 21:08       ` Johannes Schindelin
2009-04-14 21:15         ` Martin Storsjö
2009-04-14 21:42           ` Johannes Schindelin
2009-12-01 10:28   ` [PATCH 0/2] http: allow multi-pass authentication Martin Storsjö
2009-12-01 10:33     ` [PATCH/RFC] Allow curl to rewind the RPC read buffer Martin Storsjö
2009-12-01 16:01       ` Shawn O. Pearce
2009-12-01 16:12         ` Tay Ray Chuan
2009-12-01 16:16           ` Shawn O. Pearce
2009-12-01 16:51         ` Martin Storsjö
2009-12-01 17:49       ` Junio C Hamano
2009-12-02  2:32         ` Tay Ray Chuan [this message]
2009-12-02  7:45           ` Martin Storsjö
2009-12-01 10:37     ` [PATCH/RFC] Allow curl to rewind the RPC read buffer at any time Martin Storsjö
2009-12-01 16:14       ` Shawn O. Pearce
2009-12-01 16:59         ` Martin Storsjö
2009-12-02  3:15           ` Tay Ray Chuan
2009-12-01 18:18         ` Daniel Stenberg
2009-12-02  2:03           ` Tay Ray Chuan
2009-12-02  9:19             ` Daniel Stenberg
2009-12-02  9:32               ` Martin Storsjö
2009-12-02 10:04                 ` Daniel Stenberg
2009-11-27 15:42 ` [PATCH 1/2] http: maintain curl sessions Tay Ray Chuan
2009-11-27 15:43 ` [PATCH 2/2] Add an option for using any HTTP authentication scheme, not only basic Tay Ray Chuan

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=be6fef0d0912011832k12eaa093o73b057ddf4ab866@mail.gmail.com \
    --to=rctay89@gmail.com \
    --cc=Johannes.Schindelin@gmx.de \
    --cc=drizzd@aon.at \
    --cc=git@vger.kernel.org \
    --cc=gitster@pobox.com \
    --cc=gsky51@gmail.com \
    --cc=lodatom@gmail.com \
    --cc=martin@martin.st \
    --cc=nmiell@gmail.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).