Lloyd Dupont
10/10/2003 3:10:00 PM
I have implemented a multithreaded named pipe server.
and I juste made a stress test and I have some problem.
basically I do,
---- on the stressed server ----
while (true)
{
p = CreateNamedPipe()
ConnectNamedPipe();
LaunchThread(p);
}
TreadedAction(p)
{
// read write...
....
CloseHandle(p)
}
---- on the stress client ----
for(i=0; i<1000; i++)
{
p = CreateFile()
// read write
.....
CloseHandle(p)
}
the problem is, I just write a stress test which keep opening pipe send a
few kilo bytes, read a few kilobyte close the pipe, 1000 times.
the pipe is properly closed on both the client and server side.
anyway after 5 iteration I get the error : ERROR_PIPE_BUSY
did I miss something ?