in reply to Passing data between two receive loops

This isn't a simple problem. (Why is that so many people who have a problem say "I know it's a simple problem". If you know enough about the problem to know it's simple, why not solve it yourself instead of taking the trouble to post here?)

You don't say much about your specific problem, but this looks like you have a race-condition, or even deadlock. If both ends of the connection are doing a blocking read, they'll wait forever. You need to carefully synchronize your programs, and may want to use non-blocking reads. Perhaps by using 4-arg select, Event.pm, POE, and whatever it is Uri is always promoting (Stem?).

Abigail

  • Comment on Re: Passing data between two receive loops

Replies are listed 'Best First'.
Re: Re: Passing data between two receive loops
by Jaspersan (Beadle) on Nov 29, 2002 at 06:57 UTC
    Well, i thought it was a simple problem because I was thinking I would have to fork the loops (but im new to forking and working with processes in perl), so i would need help even if that was the case.

    But thanks for the help anyway :)

    ^jasper <jasper@wintermarket.org>