in reply to Socket hang. (Windows or Perl? Solutions?) (Updated)

$ perl -v | grep version This is perl 5, version 12, subversion 2 (v5.12.2) built for i686-linu +x-thread-multi $ time perl a.pl -port=12347 server:274522 client:274522 cycles: 1960.793/sec^C real 2m20.175s user 1m40.466s sys 0m44.603s

It didn't block. I interrupted it when I got tired.

I'll try on Windows 7 later.

Replies are listed 'Best First'.
Re^2: Socket hang. (Windows or Perl? Solutions?) (Updated)
by Illuminatus (Curate) on Apr 06, 2011 at 00:55 UTC
    For me, it also ran fine, and port re-use was not an issue:

    root@hlg64:~# ./foo.pl
    server:160302 client:160302 cycles: 3121.894/sec^C
    root@hlg64:~# ./foo.pl
    server:222203 client:222203 cycles: 3153.737/sec^C

    This was perl 5.10, 64-bit 2.6.29.3 Linux kernel
    3Ghz core2-duo Xeon

    fnord