in reply to Why might LWP::UserAgent be failing with '500 EOF'?
... my $fbits = ''; vec($fbits, fileno($socket), 1) = 1; ... my $rbits = $fbits; my $wbits = $write_wait ? undef : $fbits; my $nfound = select($rbits, $wbits, undef, $sel_timeout); ... if (defined($rbits) && $rbits =~ /[^\0]/) { # readable my $buf = $socket->_rbuf; my $n = $socket->sysread($buf, 1024, length($buf)); unless ($n) { die "EOF"; } ...
It happens when select says the socket has data to read, but sysread is unable to read from the handle.
I have no idea what would cause that. I'm just refining the problem description.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: Why might LWP::UserAgent be failing with '500 EOF'?
by ff (Hermit) on Apr 13, 2006 at 06:40 UTC | |
|
Re^2: Why might LWP::UserAgent be failing with '500 EOF'?
by ff (Hermit) on Apr 18, 2006 at 04:11 UTC | |
by andylockran (Initiate) on May 17, 2010 at 09:36 UTC |