X-Git-Url: http://dxcluster.org/gitweb/gitweb.cgi?a=blobdiff_plain;f=perl%2FMsg.pm;h=00128af622318d2a601de452c5a646de5a7f465d;hb=b191e3a6b0672d6111fd1c803dd5efa1c296ae0f;hp=5ac71b428e44d793bc74f49e1dfb569bc4f04311;hpb=ad7e69f78ee4c0593e1d7576a7c1fd3b13931f84;p=spider.git diff --git a/perl/Msg.pm b/perl/Msg.pm index 5ac71b42..00128af6 100644 --- a/perl/Msg.pm +++ b/perl/Msg.pm @@ -5,7 +5,7 @@ # # I have modified it to suit my devious purposes (Dirk Koopman G1TLH) # -# $Id$ +# # package Msg; @@ -14,9 +14,6 @@ use strict; use DXUtil; -use vars qw($VERSION $BRANCH); -($VERSION, $BRANCH) = dxver(q$Revision$); - use IO::Select; use IO::Socket; use DXDebug; @@ -69,8 +66,8 @@ BEGIN { # defines EINPROGRESS as 10035. We provide it here because some # Win32 users report POSIX::EINPROGRESS is not vendor-supported. if ($^O eq 'MSWin32') { - eval '*EINPROGRESS = sub { 10036 };'; - eval '*EWOULDBLOCK = *EAGAIN = sub { 10035 };'; + eval '*EINPROGRESS = sub { 10036 };' unless defined *EINPROGRESS; + eval '*EWOULDBLOCK = *EAGAIN = sub { 10035 };' unless defined *EWOULDBLOCK; eval '*F_GETFL = sub { 0 };'; eval '*F_SETFL = sub { 0 };'; eval '*IPPROTO_TCP = sub { 6 };'; @@ -490,10 +487,10 @@ sub _rcv { # Complement to _send return unless defined($sock); my @lines; - if ($conn->{blocking}) { - blocking($sock, 0); - $conn->{blocking} = 0; - } +# if ($conn->{blocking}) { +# blocking($sock, 0); +# $conn->{blocking} = 0; +# } $bytes_read = sysread ($sock, $msg, 1024, 0); if (defined ($bytes_read)) { if ($bytes_read > 0) {