On Wed, Nov 23, 2011 at 1:50 PM, goran kent <[email protected]> wrote: > could be autoflush or some such buffering bugger-up.
Nope, tried $sock->autoflush(1) (even though docs say this is active already as of v1.18), and $sock->flush. ...and further reading reveals that Perl's syswrite/sysread don't use buffering anyway making them slower, but more reliable.... :| What the hell is causing $client_sock->sysread( $buf, 6959) to only return 2892 bytes!? This is bog standard syswrite/read stuff, nothing wrong with the code AFAICS.
