From: Stephan Peijnik <stephan@peijnik.at>
To: git@vger.kernel.org
Subject: Re: git smart protocol via WebSockets - feedback wanted
Date: Tue, 05 Jun 2012 20:41:56 +0200 [thread overview]
Message-ID: <jqljtk$h6d$1@dough.gmane.org> (raw)
In-Reply-To: <7vpq9dobjo.fsf@alter.siamese.dyndns.org>
On 06/05/2012 08:31 PM, Junio C Hamano wrote:
> How does this compare with the smart-http support that tunnels the
> git protocol over http (with some butchering)?
To be honest, I didn't know smart-http support yet. Is that the approach
introduced with git 1.6.6?
If so, that approach uses multiple POST requests, meaning multiple TCP
and HTTP connections need to be established, multiple requests
processed, etc.
The WebSocket approach uses a single HTTP connection which gets upgraded
to a WebSocket. This WebSocket then allows the same communication to
happen as with the ssh implementation.
So in comparison there is possibly a lot less overhead and, in theory,
the performance should be comparable to running the smart protocol over
ssh. Personally I'd say the WebSocket approach is cleaner than the
HTTP-POST approach.
-- Stephan
next prev parent reply other threads:[~2012-06-05 18:42 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
2012-06-05 18:20 git smart protocol via WebSockets - feedback wanted Stephan Peijnik
2012-06-05 18:31 ` Junio C Hamano
2012-06-05 18:41 ` Stephan Peijnik [this message]
2012-06-05 18:54 ` Shawn Pearce
2012-06-05 19:28 ` Stephan Peijnik
2012-06-05 21:11 ` Shawn Pearce
2012-06-05 18:36 ` Shawn Pearce
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='jqljtk$h6d$1@dough.gmane.org' \
--to=stephan@peijnik.at \
--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.
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).