From: "David Kågedal" <davidk@lysator.liu.se>
To: git@vger.kernel.org
Cc: Tay Ray Chuan <rctay89@gmail.com>
Subject: Re: counting the number of connections?
Date: Thu, 05 Mar 2009 17:18:14 +0100 [thread overview]
Message-ID: <87ab80j649.fsf@krank.kagedal.org> (raw)
In-Reply-To: be6fef0d0902272244q468b1fa4sacdc15afa9a65f15@mail.gmail.com
Tay Ray Chuan <rctay89@gmail.com> writes:
> Hi,
>
> some time ago I noticed curl doesn't remember your credentials (apart
> from those it can get from ~/.netrc), and very recently there was an
> thread on repeated prompting for credentials while pushing to https.
>
> I've written a simple patch series, which allows git to play nice
> without curl_multi. That is, git uses a single persistent connection
> throughout.
>
> However, I'm at a loss at how to test for this. How does one count the
> number of connections made during the lifespan of a program's
> execution? So far, I've been relying on my firewall log (Comodo on
> windows). Perhaps there a more operating system/software-agnostic
> method to do this?
You could set up a single-use tcp forwarder which will make any second
connection fail. Using socat, for instance:
$ socat tcp-listen:2222,bind=localhost tcp:my.server:22 &
$ nc localhost 2222
SSH-2.0-OpenSSH_5.1p1 Debian-3ubuntu1
^C
$ nc localhost 2222
localhost [127.0.0.1] 2222 (?) : Connection refused
--
David Kågedal
next prev parent reply other threads:[~2009-03-05 16:20 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2009-02-28 6:44 counting the number of connections? Tay Ray Chuan
2009-03-05 16:18 ` David Kågedal [this message]
2009-03-05 17:00 ` Johannes Schindelin
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=87ab80j649.fsf@krank.kagedal.org \
--to=davidk@lysator.liu.se \
--cc=git@vger.kernel.org \
--cc=rctay89@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 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.