[lnkForumImage]
TotalShareware - Download Free Software

Confronta i prezzi di migliaia di prodotti.
Asp Forum
 Home | Login | Register | Search 


 

Forums >

microsoft.public.dotnet.framework.sdk

Re: Named pipe problems ...

Lloyd Dupont

10/10/2003 4:49:00 PM

No worries, I found it, I create a pivate named pipe for further
communication and it all ..... went better ....
(still not stress proof BTW)

"Lloyd Dupont" <net.galador@ld> a écrit dans le message de news:...
> 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 ?
>
>
>
>