Home » Networking » Net_FTP » Bug #1445
Improvement of setTimeout() method + timout handling
Details
| Submitted | 2004-05-19 19:04 UTC |
|---|---|
| From | pear dot 20 dot fab at spamgourmet dot com |
| Assigned | toby |
| Status | Closed |
| Package | Net_FTP |
| PHP Version | 4.3.1 |
| OS | Win 2000 |
| Roadmaps | (Not assigned) |
Comments
[2004-05-19 19:04 UTC] pear dot 20 dot fab at spamgourmet dot com
Description:
------------
When using Net_FTP to connect to a slow or even offline ftp server, PHP will use the standard timeout of 90 seconds. This can be very annoying because the setTimeout() only works if an stream handle has already been created -> a lot of time wasted. So it would be nice to change the timeout handling a bit.
I added a new private attribute (_timeout) and modified the constructor and the setTimeout() method.
Regards, Nils.
Reproduce code:
---------------
http://www.affenkrieger.de/FTP.php