Multithreaded NamePipeServer in C#

You can write a multi threaded pipe server by repeatedly creating a NamedPipeServerStream and waiting for one connection, then spawning a thread for that instance of NamedPipeServerStream. You can only have 254 concurrent clients though according to the .NET MSDN documentation linked below. For Win32 APIs though you can pass a special value to get … Read more

Python read named PIPE

In typical UNIX fashion, read(2) returns 0 bytes to indicate end-of-file which can mean: There are no more bytes in a file The other end of a socket has shutdown the connection The writer has closed a pipe In your case, fifo.read() is returning an empty string, because the writer has closed its file descriptor. … Read more

Expose a WCF Service through a Named Pipes binding

Your endpoint looks fine, although I’m curious about what’s in localBinding… Sounds like the easiest option is to just change the endpoint configuration on the named pipes client to match your service endpoint. The client shouldn’t care as long as it’s the only endpoint in the clients config file. Otherwise you’ll have to add names … Read more

git stderr output can’t pipe

I think that at least some of progress reports gets silenced when output is not a terminal (tty). I’m not sure if it applies to your case, but try to pass –progress option to ‘git clone’ (i.e. use git clone –progress <repository>). Though I don’t know if it is what you wanted to have.

Named Pipe Server throws UnauthorizedAccessException when creating a second instance if PipeSecurity is set

There are two things which can cause the instantiation of a second or subsequent NamedPipeServerStream on the same pipe to fail: the maxNumberOfServerInstances ctor argument must have been set to more than 1 when the first instance of the pipe server was created. If not, the second call will fail unless the first instance has … Read more