[EMAIL PROTECTED] wrote: > Hi All, > > I'm unsure what to do next. I hope someone has beaten this before and > hears my cry for help. > > I've implemented a script to transfer files to a client, and to pick files > up. There is a firewall, though I don't know much about it. I instantiate > the Net::FTP object with Passive => 1. > > The transfers are running several times a day. Some of them are hanging. >
... > while( ! $ftp->login($login, $password) ){ > $cnt++; > if ( $cnt >= 3 ){ > # error handling stuff A TODO comment will do very little to unhang a process. You need to actually put some error-handling decisions here. Connectivity over the Internet is not a dead-on certainty. Programs that do not account for the possibility that a connection will not br possible are pretty much doomed to hang. I would recommend putting some give-up-on-attempt code into your program. Joseph -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]