Beefy Boxes and Bandwidth Generously Provided by pair Networks
Welcome to the Monastery
 
PerlMonks  

Re: IO::Handle read error description?

by Hofmator (Curate)
on Nov 03, 2006 at 10:45 UTC ( #582049=note: print w/ replies, xml ) Need Help??


in reply to IO::Handle read error description?

Have you tried printing the $! variable after the getline() call?

-- Hofmator

Code written by Hofmator and posted on PerlMonks is public domain. It is provided as is with no warranties, express or implied, of any kind. Posted code may not have been tested. Use of posted code is at your own risk.


Comment on Re: IO::Handle read error description?
Download Code
Re^2: IO::Handle read error description?
by tbone1 (Monsignor) on Nov 03, 2006 at 12:31 UTC
    I was thinking of the same thing. I ran into this once, and and I believe that it was this very thing, but it was so long ago that I can't recall. I do recommend trying it, however.

    --
    tbone1, YAPS (Yet Another Perl Schlub)
    And remember, if he succeeds, so what.
    - Chick McGee

Re^2: IO::Handle read error description?
by Marcello (Hermit) on Nov 03, 2006 at 13:44 UTC
    Good one,

    I have modified the code to log also the $! variable. Now we wait for the error to occur again. The question remains why these partial commands are received. Sometimes it takes up to 5 seconds to receive the second part, which might indicate that TCP packets are being delayed somewhere.

    Regards,
    Marcel

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://582049]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others rifling through the Monastery: (8)
As of 2014-08-20 05:22 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    The best computer themed movie is:











    Results (105 votes), past polls