SPUG: weirdness with two perl -d sessions simultaneously under same account?

Chris Wilkes cwilkes-spug at ladro.com
Sat Feb 19 22:12:53 PST 2005

On Sat, Feb 19, 2005 at 02:36:02PM -0800, Fred Morris wrote:
> I've been debugging a client-server thingy, and I've noticed what appears
> to be a weird line buffering problem when I have both parts running under
> perl -d in the same account. The server is not threaded, it uses a select
> to monitor multiple TCP/IP client connections (old school Perl Cookbook)..
> and I'm not in the select loop, I'm way down in the guts and trying to
> print stuff from the debug prompt and nothing comes out until I step.
> Thought I'd ask if anybody had experienced anything like this, or what else
> it might be. Perl 5.8.0 FWIW.

Can you sniff the network to see if both clients received all the
server's output, and that it is just the clients buffering?

Can you post some minimal code to show the problem?  Does it only happen
when you run both under the debugger?  What about one in the debugger,
the other not?


More information about the spug-list mailing list