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

Re: Bug: Cloning git repositories behind a proxy using the git:// protocol broken since 2.32

From
Jacob Keller <jacob.keller@gmail.com>
Date
Jan 31, 2023, 20:31 UTC
Message-ID
<CA+P7+xpgJKojMmcN9TuGDw8oduQSQk-5nUtsWc+4Seqa+eVDJQ@mail.gmail.com>
In-Reply-To
<339359ee8a228ea108109cf852bcb7e145807dcf.camel@siemens.com>

On Tue, Jan 31, 2023 at 4:17 AM Florian Bezdeka <florian.bezdeka@siemens.com> wrote:

Show 16 quoted lines
> Thanks for the super fast response, highly appreciated!
>
> I was able to get it running by switching to ncat using the --no-
> shutdown option, but I failed to bring back socat support so far.
>
> For me this is still a regression. We have to change our
> infrastructure/environment because we have a new requirement
> (independent handling of stdin/out) after updating git now. I would
> expect some noise from the yocto/OE community in the future where oe-
> git-proxy is heavily used.
>
> I guess proxy support was forgotten when the referenced change was
> made. Any chance we can avoid closing stdout when running "in proxy
> mode" to restore backward compatibility?
>
> Thanks a lot!

I had this issue in the past and i got it working with socat using "-t 10". You need a timeout that is larger than the keep alive value of 5 seconds which is sent by the git protocol.

Junio pointed out the excellent analysis from Peff regarding the situation and the fact that socat is wrong here.

What value of -t did you try?
Previous: Junio C HamanoNext: Florian Bezdeka
Message 5 of 10 in “Bug: Cloning git repositories behind a proxy using the git:// protocol broken since 2.32”
  1. Bezdeka, FlorianJan 31, 2023
  2. brian m. carlsonJan 31, 2023
  3. Florian BezdekaJan 31, 2023
  4. Junio C HamanoJan 31, 2023
  5. Jacob KellerJan 31, 2023
  6. Florian BezdekaJan 31, 2023
  7. Jeff KingFeb 1, 2023
  8. Florian BezdekaFeb 1, 2023
  9. Bezdeka, FlorianFeb 1, 2023
  10. Jeff KingFeb 2, 2023

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.