From: Son Luong Ngoc <sluongng@gmail.com>
To: git@vger.kernel.org
Cc: Jeff.Hostetler@microsoft.com
Subject: Git pull stuck when Trace2 target set to Unix Stream Socket
Date: Mon, 13 Apr 2020 14:05:00 +0200 [thread overview]
Message-ID: <CAL3xRKceuniEOq+PqN15FC4-mxsWJd4+e2fu1Ku9q_+8JmR9pw@mail.gmail.com> (raw)
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 reply other threads:[~2020-04-13 12:14 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2020-04-13 12:05 Son Luong Ngoc [this message]
2020-04-13 16:00 ` Git pull stuck when Trace2 target set to Unix Stream Socket Taylor Blau
2020-04-13 17:19 ` Son Luong Ngoc
2020-04-13 17:23 ` Taylor Blau
2020-04-13 17:18 ` Jeff King
2020-04-13 18:42 ` Jeff Hostetler
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
List information: http://vger.kernel.org/majordomo-info.html
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=CAL3xRKceuniEOq+PqN15FC4-mxsWJd4+e2fu1Ku9q_+8JmR9pw@mail.gmail.com \
--to=sluongng@gmail.com \
--cc=Jeff.Hostetler@microsoft.com \
--cc=git@vger.kernel.org \
/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.
Code repositories for project(s) associated with this public inbox
https://80x24.org/mirrors/git.git
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).