Skip to main content

All Questions

0 votes
0 answers
23 views

Latency in Write to stream is very high when peer NamedPipeStream(C#) is async

I have NamedPipeServerStream object which is synchronous while the NamedPipeClientStream objects are asynchronous type. In the past when both the sides of the pipe instances where synchronous the ...
user22516534's user avatar
0 votes
1 answer
1k views

Why is reading a file asynchronously (with aiofile) so much (15x) slower than its synchronous equivalent?

I'm experimenting mit named pipes and async approaches and was a bit surprised, how slow reading the file I've created seems to be. And as this question suggests, this effect is not limited to named ...
frans's user avatar
  • 9,584
3 votes
2 answers
355 views

Reading named Pipe using overlapped/asynchronous i/o

I have a real old code from a service that uses named named pipes in message mode (PIPE_TYPE_MESSAGE) with overlapped i/o (FILE_FLAG_OVERLAPPED). The code does the following: ReadFile for 4 bytes ...
xMRi's user avatar
  • 15.3k
0 votes
1 answer
298 views

CPU usage/ speed tradeoff when reading from a named pipe in python

I want to read from a pipe asynchronously in python. The pipe is fed continuously from another process (a javascript process). I am using pipes for a matter of speed. I don't want to loop and see if ...
mehh's user avatar
  • 59
0 votes
1 answer
734 views

How to create and delete NamedPipeServerStream in Powershell?

I was struggling with a scenario where I had one process running as admin and another process running as non-admin user. The first admin-process should open a pipeStream to allow the other process ...
Carsten's user avatar
  • 1,959
0 votes
1 answer
81 views

how to send data at any moment ( simultaneous ) in windows?

I want write a namedpipe client in windows OS, which can send data at any time even the client is receiving data.Example of MSDN only shows that sending data after receive something.And the serial ...
Gordon's user avatar
  • 446
7 votes
1 answer
1k views

CancellationToken not working with WaitForConnectionAsync

NamedPipeServerStream server=new NamedPipeServerStream("aaqq"); var ct=new CancellationTokenSource(); ct.CancelAfter(1000); server.WaitForConnectionAsync(ct.Token).Wait(); I would expect the last ...
wezten's user avatar
  • 2,136
0 votes
0 answers
935 views

Named Pipes not working for asynchronous duplex communication

Somehow I am not able to get named pipes work for duplex communication between client and server for .Net app. Duplex communication works fine when I go for sequential messaging, but when I make it ...
Subasish's user avatar
  • 102
1 vote
0 answers
2k views

C# Why is my named pipe read() method not blocking?

I have a method in which I intend to use namedPipeServerStream.Read() to read messages multiple times. The pipe is started with the Asynchronous property set to true, because I don't want the wait ...
Frank's user avatar
  • 459
2 votes
0 answers
865 views

Correct way to timeout asynchronous namedpipes in C# .net environoment

I have a process that might have multiple instances running at anytime. Each instance should only run for several seconds at most. A process might have to pass data to an earlier started instance, or ...
Frank's user avatar
  • 459
0 votes
1 answer
605 views

ReadFile using NamedPipe blocks though using overlapped

I am using NamedPipes to communicate between different modules of our windows application. At one point it is possible that a read operation could take long time so we would like to add a timeout. I ...
Frank's user avatar
  • 2,056
1 vote
1 answer
60 views

How to inherit non-inherited attribute in c#

Here is my situation: I have a base class and 70 delivered class that are inherited from this. I am implementing WCF named pipelines and these 70 class will be the clients. Need asynchronously ...
RockOnGom's user avatar
  • 3,951
3 votes
1 answer
2k views

C# async named pipes wait for ever

I am using asynchronous pipes and at some point both the server and the client wait for each other and do nothing. Here is my code: Server: var buffer = new byte[BufferSize]; using (var server = new ...
user2173353's user avatar
  • 4,542
5 votes
1 answer
5k views

NamedPipeServerStream.BeginWaitForConnection fails with System.IO.Exception: The pipe is being closed

I have written a simple async NamedPipeStreamServer process in C#, the heart of which is: public void Listen() { bool shuttingDown = false; while (!shuttingDown) { ...
Bob Vesterman's user avatar
28 votes
3 answers
16k views

c# Full Duplex Asynchronous Named Pipes .NET

I am trying to achieve a full-duplex client-server communication scheme, on 2 different machines (only), where each end-point (client or server) can send stuff at any time, asynchronously (non-...
eric frazer's user avatar
  • 1,623

15 30 50 per page