﻿id,summary,reporter,owner,description,type,status,priority,milestone,component,version,severity,resolution,keywords,cc
10522,timeout for ftp connections as a constant in config.php,ntm,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 [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.
",defect (bug),closed,normal,2.9,Filesystem,2.8.2,normal,fixed,has-patch,
