timeout for ftp connections as a constant in config.php
|Reported by:||ntm||Owned by:||dd32|
In the last, I had have some problems with the automatic plugin upgrade. Every I startet the upgrade I have got an error message told me the I had entered a wrong password. But I was very sure that I had used the right one.
While reading in the wordpress.org forums I discovered that it could have something to do with the file "/wp-admin/includes/class-wp-filesystem-ftpext.php". And after some testing I could narrow the problem down to the timeout for the PHP function ftp_connect in line 19 of the file class-wp-filesystem-ftpext.php. There the timeout = 5 and that is insufficiently at my hosting provider. (A friend of mine has a weblog at a server of the same hosting provider and has experienced the same problems.)
I can imagine that this 5 seconds value is for a reason so small. But for some cases it would be great to be able to change that value easily and that is why i have made two little patches for
/wp-admin/includes/class-wp-filesystem-ftpext.php and /wp-admin/includes/file.php whose make it possible to change the value via the config.php file like all the other ftp credentials.
I have no overview of all the WordPress core functions and files, so it might be necessary to make some further changes to this build in.
Change History (35)
- Component changed from General to Filesystem
- Owner set to dd32
- Milestone changed from 2.8.3 to 2.9
- Type changed from enhancement to defect (bug)
- Keywords has-patch needs-testing added; ftp connection timeout plugin upgrade removed
- Resolution set to fixed
- Status changed from accepted to closed