git/list[1] front-page[2] threads[3] people[4] search[5] about
 

Re: git slow over https

From
GNGelonida N <gelonida@gmail.com>
Date
Oct 28, 2011, 20:07 UTC
Message-ID
<j8f22l$b2h$1@dough.gmane.org>
In-Reply-To
<CAOs=hR+K_YZcjdAUq_jaz0wc9k8BRQ2-ny7A=GFaNL4R-W0UBw@mail.gmail.com>
On 10/28/2011 05:28 PM, Mika Fischer wrote:
Show 19 quoted lines
> Hi,
> 
> I have an apache server that serves git repositories over https. I
> have the problem that git is very slow when accessing it, as in 3
> seconds for a "git pull" that does nothing.
> 
> I tracked the problem down to git sleeping for 50ms using select from
> time to time while downloading the response of the server. In my case
> this really hurts performance (see attached strace). However, with a
> different https server things work quite fine.
> 
> If I remove the select in http.c:673 (in run_active_slot), then things
> are fast also with my server.
> 
> So my questions are:
> 1) What's the purpose of the select in http.c:673? Can it be removed?
> 2) If it serves a useful purpose, what can be the reason that it hurts
> performance so much in my case?
> 
Do you edperience the same delay if you ssh to the server?

If yes, then try to add following line to the slow https server's config file.

UseDNS no

The config file should have a name similair to /etc/ssh/sshd_config

Is it getting any faster?
Previous: Mika Fischer
Message 4 of 4 in “git slow over https”
  1. Mika FischerOct 28, 2011
  2. Daniel StenbergOct 28, 2011
  3. Mika FischerOct 29, 2011
  4. Gelonida NOct 28, 2011

Read the whole thread, see it on lore, or plain text.

$ cat FOOTERMessages come from the public archive at lore.kernel.org/git, fetched every hour. The front page is chosen and written each morning by an AI editor and can be wrong; the threads themselves are the record. About and API. For agents: an MCP server at https://gitlist.dev/mcp, and any thread, story or person page as Markdown by adding .md to its URL (or sending Accept: text/markdown). Details in /llms.txt.