Comment 1 for bug 1836908

Revision history for this message
Jason Stephenson (jstephenson) wrote :

For those of you suffering along with the B&T FTP server issues, here's a patch that will hardcode the FTP timeout to 15 seconds in OpenILS::Utils::RemoteAccount. For sites with lots of B&T accounts (we have 148!), this should reduce the time spent trying to connect to B&T.

The default timeout for Net::FTP is 2 minutes, and O::U::RemoteAccount does not set the timeout. Each failed attempt to connect to B&T (or any FTP server that is offline) will take 2 minutes. With 148 accounts...you do the math....

I'm posting a patch and not making a branch because this is a quick 'n' dirty patch not intended for inclusion in Evergreen. The timeout value ought to be configurable somewhere or at least better exposed in the code so it more easily adjusted.