Re: [PATCH 2/3] Add read-cache--daemon
- From
Erik Faye-Lund <kusmabite@gmail.com>
- Date
- May 13, 2014, 13:37 UTC
- Message-ID
- <CABPQNSbu9uVh_LZqQupG9TJe0_ggA1EmAWnk8H7+xOBvcsrcOg@mail.gmail.com>
- In-Reply-To
- <CACsJy8BFEtXQc7mO1pvdeQ9GMofcW0H2uJF=E6yfN4SwQWgRbw@mail.gmail.com>
On Tue, May 13, 2014 at 3:01 PM, Duy Nguyen <pclouds@gmail.com> wrote:
Show 5 quoted lines
> What do you think is a good replacement for unix socket on Windows? > It's only used to refresh the cache in the daemon, no sensitive data > sent over, so security is not a problem. I'm thinking maybe just > TCP/IP server, but that's going to be a system-wide daemon.. Perhaps > the windows daemon could just monitor $GIT_DIR/index and refresh it?
Windows has support for Named Pipes, which seems like the right kind of communication channel. However, the programming model differs quite a bit from unix-sockets:
http://msdn.microsoft.com/en-us/library/windows/desktop/aa365594%28v=vs.85%29.aspx