Hung process, Net::Ftp
Posted on 2000-03-02
I have a robot which is run, via cron, every 15 minutes. It uses Net::Ftp to connect and download some file from a Ftp server... The problem is that this service is not 100% reliable. Sometimes I can't connect, but this is handeled by the Timeout option which I have explicilty set to 20 (Timeout => 20) but this only applies to a connection. Once I have a valied connection it no longer applies and thats when my problems start...
Sometimes I my be logged in, do an ls and never get a response yet the connection is still alive. When this happens the whole script hangs. The real problem is that after about 3-4 days Cron has so many quequed processes that it begins to ingnore or kill off jobs at random and at that point I'm %^%$^%$^%. Any ideas...? Something clean. I already have a shell script that goes in and kills the hung processes but that is dirty and ugly and not the solution.