in reply to Umm... Win32::Pipe

Whats the error code/text?

Replies are listed 'Best First'.
Re^2: Umm... Win32::Pipe
by dallen16 (Sexton) on Oct 08, 2008 at 00:53 UTC

    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

      Hmm, so whats the error code/text? Better check.