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

RE: FW: git over https and http 1.1

From
NFNir Friedman <nirfri@hotmail.com>
Date
May 19, 2011, 04:43 UTC
Message-ID
<BLU0-SMTP207861424D1FA595A51BBBEC78E0@phx.gbl>
In-Reply-To
<alpine.DEB.2.00.1105181615180.26343@tvnag.unkk.fr>

See below the output of GIT_CURL_VERBOSE, I marked the position (POINT 1) where there seems to be a hang (~20 seconds)

GIT_CURL_VERBOSE=1 git clone http:// @10.1.30.61/git/WebGui
Cloning into WebGui...
* Couldn't find host 10.1.30.61 in the .netrc file; using defaults
* About to connect() to 10.1.30.61 port 80 (#0)
*   Trying 10.1.30.61... * connected
* Connected to 10.1.30.61 (10.1.30.61) port 80 (#0)
* 0x8fb5b58 is at send pipe head!
> GET /git/WebGui/info/refs?service=git-upload-pack HTTP/1.1
User-Agent: git/1.7.5.1
Host: 10.1.30.61
Accept: */*
Pragma: no-cache
< HTTP/1.1 200 OK
< Date: Thu, 19 May 2011 04:37:40 GMT
< Server: Apache/2.2.17 (Ubuntu)
< Expires: Fri, 01 Jan 1980 00:00:00 GMT
< Pragma: no-cache
< Cache-Control: no-cache, max-age=0, must-revalidate
< Transfer-Encoding: chunked
< Content-Type: application/x-git-upload-pack-advertisement
<
*********************************************///////////POINT
1///////////**************************************
* Connection #0 to host 10.1.30.61 left intact
* Couldn't find host 10.1.30.61 in the .netrc file; using defaults
* About to connect() to 10.1.30.61 port 80 (#0)
*   Trying 10.1.30.61... * connected
* Connected to 10.1.30.61 (10.1.30.61) port 80 (#0)
> POST /git/WebGui/git-upload-pack HTTP/1.1
User-Agent: git/1.7.5.1
Host: 10.1.30.61
Accept-Encoding: deflate, gzip
Content-Type: application/x-git-upload-pack-request
Accept: application/x-git-upload-pack-result
Content-Encoding: gzip
Content-Length: 15639

< HTTP/1.1 200 OK < Date: Thu, 19 May 2011 04:37:40 GMT < Server: Apache/2.2.17 (Ubuntu) < Expires: Fri, 01 Jan 1980 00:00:00 GMT < Pragma: no-cache < Cache-Control: no-cache, max-age=0, must-revalidate < Transfer-Encoding: chunked < Content-Type: application/x-git-upload-pack-result < remote: Counting objects: 33641, done. ^Cmote: Compressing objects: 99% (6677/6744)

real 0m1.866s user 0m0.008s sys 0m0.008s

-----Original Message-----
From: Daniel Stenberg [mailto:daniel@haxx.se] 
Sent: Wednesday, May 18, 2011 5:40 PM
To: Nir Friedman
Cc: git@vger.kernel.org
Subject: Re: FW: git over https and http 1.1
On Wed, 18 May 2011, Nir Friedman wrote:
> Fast is - 15 seconds, around  50% less
15 seconds is a really long time. I think it might be useful if you did some

network snooping/capturing to see what's really going on. Or set GIT_CURL_VERBOSE to get some verbose libcurl output and see if that explains

anything.
> This was checked on 	Ubuntu 	11.04  Libcurl 	7.21.3
> This problem didn't exist on windows clients.

libcurl works exactly the same on Windows so that effectively nullifies the theory it would have something to do with libcurl's HTTP 1.1 support...

-- 
  / daniel.haxx.se
Previous: Daniel StenbergNext: Daniel Stenberg
Message 3 of 8 in “FW: git over https and http 1.1”
  1. Nir FriedmanMay 18, 2011
  2. Daniel StenbergMay 18, 2011
  3. Nir FriedmanMay 19, 2011
  4. Daniel StenbergMay 19, 2011
  5. Tay Ray ChuanMay 19, 2011
  6. Nir FriedmanMay 20, 2011
  7. Nir FriedmanMay 22, 2011
  8. Nir FriedmanMay 19, 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.