P
Peter Mutsaers
Using perl 5.8.0 and latest versions of libnet and DBI:
The script did
- open DBI to oracle
- start queries and write in 2 files
- close files
- close DB
- open FTP (Net::FTP->new)
result: the open FTP fails immediately with a connection timeout, even
though the timeout is 120s (I also tried some other explicit settings
and traced into IO::Socket).
When I reverse the 2 last steps, i.e. I close the DB handle after the
Net::Ftp->new, there is no problem.
Note: the FTP->new fails only when the server takes more than about 1
second to respond. For fast local servers the problem did not occur at
all.
Someone has an idea how this can be? Could the closing of the
DBD::Oracle handle throw some signal (this is on Solaris btw) after 1
second which confuses IO::Socket?
Thanks,
Peter Mutsaers
The script did
- open DBI to oracle
- start queries and write in 2 files
- close files
- close DB
- open FTP (Net::FTP->new)
result: the open FTP fails immediately with a connection timeout, even
though the timeout is 120s (I also tried some other explicit settings
and traced into IO::Socket).
When I reverse the 2 last steps, i.e. I close the DB handle after the
Net::Ftp->new, there is no problem.
Note: the FTP->new fails only when the server takes more than about 1
second to respond. For fast local servers the problem did not occur at
all.
Someone has an idea how this can be? Could the closing of the
DBD::Oracle handle throw some signal (this is on Solaris btw) after 1
second which confuses IO::Socket?
Thanks,
Peter Mutsaers