in reply to select loop madness

That behavior sounds really odd to me. I don't see why it would act that way. I'm suspicious of the global variables or closures that appear in run(). Have you tried writing this as a method of $buffer?

Does the processing appear in blocks of all one handle at a time? That might make the loop only run once, if your sysreadline() method is highjacking select. I'd like to see how you've subclassed IO::Select. I suspect the odd behavior must originate there.

Does select really work right on WinXP?

After Compline,
Zaxo

Replies are listed 'Best First'.
Re^2: select loop madness
by Forsaken (Friar) on Jul 19, 2005 at 08:46 UTC
    Well, here's the actual module $buffer uses: I can't see anything in there that might cause this behavior. All it really does is create an artificial buffer so I could stuff the dirty work of processing unbuffered reads somewhere nicely out of sight.


    Remember rule one...