git@vger.kernel.org mailing list mirror (one of many)
 help / color / mirror / code / Atom feed
From: Eric Wong <normalperson@yhbt.net>
To: Constantine Plotnikov <constantine.plotnikov@gmail.com>
Cc: git@vger.kernel.org
Subject: Re: git+http:// proof-of-concept (not using CONNECT)
Date: Fri, 3 Jul 2009 13:28:39 -0700	[thread overview]
Message-ID: <20090703202839.GB12072@dcvr.yhbt.net> (raw)
In-Reply-To: <85647ef50907020252u41e36187jaacacad3d8a10f75@mail.gmail.com>

Constantine Plotnikov <constantine.plotnikov@gmail.com> wrote:
> On Thu, Jul 2, 2009 at 12:54 PM, Eric Wong<normalperson@yhbt.net> wrote:
> > This doesn't work in the face of most HTTP-aware proxies[1], so it
> > probably doesn't help those who have trouble accessing git:// servers in
> > the first place...  However, this could potentially be useful in places
> > where a proxy providing CONNECT is not available.
> >
> The current lore is that to work with http proxies two separate
> streams are needed,
> one for input and one for outputs.
> 
> This technique is described at
> http://xmpp.org/extensions/xep-0124.html#technique
> and other places.

Actually, the problem with my approach here is that any HTTP proxies are
free to rewrite chunked requests/responses to non-chunked ones (for
compression, ssl, or even performance reasons).  That and my approach
requires both the client and server to be simutaneously sending and
receiving responses in full-duplex channel which makes it impossible to
work without chunking.  IOW, there's no chance any HTTP proxy that
dechunks or queues/coalesces chunked requests/responses can work with
my approach.

The big upside is that only one HTTP request is needed for a full clone,
making this the most efficient way of using git over HTTP so far :)

-- 
Eric Wong

  reply	other threads:[~2009-07-03 20:28 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2009-07-02  8:54 git+http:// proof-of-concept (not using CONNECT) Eric Wong
2009-07-02  9:52 ` Constantine Plotnikov
2009-07-03 20:28   ` Eric Wong [this message]
2009-07-07 16:14     ` Tony Finch
2009-07-07 20:50       ` Eric Wong
2009-08-26 14:34         ` Douglas Campos
2009-09-05  8:23           ` Eric Wong

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

  List information: http://vger.kernel.org/majordomo-info.html

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20090703202839.GB12072@dcvr.yhbt.net \
    --to=normalperson@yhbt.net \
    --cc=constantine.plotnikov@gmail.com \
    --cc=git@vger.kernel.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.
Code repositories for project(s) associated with this public inbox

	https://80x24.org/mirrors/git.git

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 read-only IMAP folder(s) and NNTP newsgroup(s).