[Pdx-pm] IO::Socket::INET wakeup call

Roderick A. Anderson raanders at acm.org
Fri Mar 3 08:51:38 PST 2006

Don't we all hate replying to our own posts.


Lisa offered some great ideas but a glimmer of light came last night and 
I just checked the driver settings on the Windows machine.  Power Saving 
mode was enabled so the system was shutting the NIC down when inactive 
active.  Hopefully this is the solution.  I'll wait for awhile and try 
it.  Wait again and try again.


Roderick A. Anderson wrote:
> I'm connecting to a service running on a WinXP system using 
> IO::Socket::INET and for the most part it has been great.  Recently 
> though I've noticed that after a long-ish period of no activity that my 
> initial connect fails.  I'm running in debug mode so a simple restart of 
> the script and the connection works fine.  When this runs in production 
> mode I need it to not fail.  Of course I can loop through several tries 
> and exit when it connects or really errors out but this seems inelegant.
>    I'm sure this is some stupid Windows thing where the network 
> connection is sleeping and can't wake up fast enough and will look at 
> the device, network, TCP/IP settings but that will not work when I don't 
> control the Windows box.
>    Before getting lost ( again ) in the IO::Socket, IO::Handle, IO::* 
> documentation world I'm trying for a cheap answer.  Is there a generic 
> method to try and wake a TCP/IP connection?  Sort of "Hello ... McFly!"
> TIA,
> Rod

More information about the Pdx-pm-list mailing list