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

Git pull stuck when Trace2 target set to Unix Stream Socket

From
Son Luong Ngoc <sluongng@gmail.com>
Date
Apr 13, 2020, 12:05 UTC
Message-ID
<CAL3xRKceuniEOq+PqN15FC4-mxsWJd4+e2fu1Ku9q_+8JmR9pw@mail.gmail.com>
Hey folks,

I am trying to write a simple git trace2 event collector and I notice that when git doing git pull with trace events being sent to a unix stream socket, the entire operation halted.

Reproduce as follow: ``` cd git/git git config trace2.eventTarget af_unix:stream:/tmp/git_trace.sock git config trace2.eventBrief false (rm /tmp/git_trace.sock | ) && nc -lkU /tmp/git_trace.sock

# In a different terminal git pull # Pull stuck and never complete ```

This does not happen when you set eventBrief to true ``` git config trace2.eventBrief true ```

Worth to note that if eventTarget is a file instead of a socket, everything works fine.

Cheers, Son Luong.

Next: Taylor Blau
Message 1 of 6 in “Git pull stuck when Trace2 target set to Unix Stream Socket”
  1. Son Luong NgocApr 13, 2020
  2. Taylor BlauApr 13, 2020
  3. Son Luong NgocApr 13, 2020
  4. Taylor BlauApr 13, 2020
  5. Jeff KingApr 13, 2020
  6. Jeff HostetlerApr 13, 2020

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.