in reply to Re: Umm... Win32::Pipe
in thread Umm... Win32::Pipe
On the server side, the first time through the loop, the call to $jobPipe->Connect(); blocks like it's supposed to... waiting for a client to open the named pipe. The first client opens its side of the pipe, writes something, closes it's side of the pipe. The server side connects, reads the data, and then does a disconnect ($jobPipe->Disconnect();). So far so good..
The problem occurs at the top of the loop, second time through. The second call to $jobPipe->Connect(); doesn't block waiting for a new client to connect. It fails. It's not supposed to fail. It's supposed to block waiting for another client to connect -- just like the first time through. Isn't it?
Dewey
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^3: Umm... Win32::Pipe
by Anonymous Monk on Oct 08, 2008 at 02:02 UTC |