From: Stefan Beller <sbeller@google.com>
To: Jeff King <peff@peff.net>
Cc: "Ævar Arnfjörð Bjarmason" <avarab@gmail.com>,
"Tim Hutt" <tdhutt@gmail.com>,
"git@vger.kernel.org" <git@vger.kernel.org>
Subject: Re: Monitoring a repository for changes
Date: Wed, 21 Jun 2017 12:55:05 -0700 [thread overview]
Message-ID: <CAGZ79kau0cxRw6_bFKw6-wc2J9fBPPjRfpRhSxD+BGi2usvNpg@mail.gmail.com> (raw)
In-Reply-To: <20170621194425.vcu6qdmoddwpi3ht@sigill.intra.peff.net>
On Wed, Jun 21, 2017 at 12:44 PM, Jeff King <peff@peff.net> wrote:
>
> Yeah. The naive way to implement this would be to have the client
> connect and receive the ref advertisement. And then when it's a noop
> (nothing to fetch), instead of saying "I want these objects", say
> "Please pause until one or more refs change". But I don't think we'd
> want to leave actual upload-pack processes sitting paused on the server.
> Their memory usage is too high.
https://git.eclipse.org/r/#/c/6587/
JGit has had its experiments with some standing connection and then
having some sort of Pub/Sub system. AFAICT it did not go anywhere
because of the number of connections (even if you optimize for
the serverside, such that each connection is just the cost of a java
thread and a file descriptor).
>
> The sticking point on both is that the client needs to speak before the
> ref advertisement begins, which is why we have to deal with the protocol
> v2 headache.
I would not call it headache, but large project that is not to be tackled
by one person alone. ;)
next prev parent reply other threads:[~2017-06-21 19:55 UTC|newest]
Thread overview: 9+ messages / expand[flat|nested] mbox.gz Atom feed top
2017-06-21 14:27 Monitoring a repository for changes Tim Hutt
2017-06-21 15:04 ` Ævar Arnfjörð Bjarmason
2017-06-21 19:44 ` Jeff King
2017-06-21 19:55 ` Stefan Beller [this message]
2017-06-21 19:52 ` Eric Wong
2017-06-21 21:56 ` Ævar Arnfjörð Bjarmason
2017-06-21 22:20 ` Eric Wong
2017-06-21 22:36 ` Eric Wong
2017-06-21 21:19 ` Jonathan Nieder
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=CAGZ79kau0cxRw6_bFKw6-wc2J9fBPPjRfpRhSxD+BGi2usvNpg@mail.gmail.com \
--to=sbeller@google.com \
--cc=avarab@gmail.com \
--cc=git@vger.kernel.org \
--cc=peff@peff.net \
--cc=tdhutt@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).