[wp-trac] [WordPress Trac] #10522: timeout for ftp connections as a constant in config.php
WordPress Trac
wp-trac at lists.automattic.com
Thu Jul 30 18:50:55 UTC 2009
#10522: timeout for ftp connections as a constant in config.php
-------------------------+--------------------------------------------------
Reporter: ntm | Owner:
Type: enhancement | Status: new
Priority: normal | Milestone: 2.8.3
Component: General | Version: 2.8.2
Severity: normal | Keywords: ftp connection timeout, plugin upgrade,
-------------------------+--------------------------------------------------
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 [http://de.php.net/manual/en/function.ftp-
connect.php 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.
--
Ticket URL: <http://core.trac.wordpress.org/ticket/10522>
WordPress Trac <http://core.trac.wordpress.org/>
WordPress blogging software
More information about the wp-trac
mailing list