[wp-trac] [WordPress Trac] #10522: timeout for ftp connections as a constant in config.php

WordPress Trac wp-trac at lists.automattic.com
Tue Oct 6 22:05:13 UTC 2009


#10522: timeout for ftp connections as a constant in config.php
--------------------------+-------------------------------------------------
 Reporter:  ntm           |        Owner:  dd32  
     Type:  defect (bug)  |       Status:  closed
 Priority:  normal        |    Milestone:  2.9   
Component:  Filesystem    |      Version:  2.8.2 
 Severity:  normal        |   Resolution:  fixed 
 Keywords:  has-patch     |  
--------------------------+-------------------------------------------------

Comment(by dd32):

 > wp-admin/includes/file.php
 That is defined as a per-action timeout, Not as a entire connection
 timeout.

 > wp-admin/includes/class-wp-filesystem-ftpsockets.php
 The timeout in that file is on a per-action basis, Setting the FS_TIMEOUT
 value that high in that class is only ensuring that actions will only time
 out after a long time.

 > wp-admin/includes/class-wp-filesystem-ftpext.php

 Typo is a valid bug, And increasing it to 300 might solve some peoples
 problems, Comment changes are not - They're defaults for the class, and
 its a per-ftpext thing, not a ftp thing.

 A better solution is to send a NOOP or similar keep-alive during extracion
 every 15s or so, I've got some code around here which will work on 2.9+,
 I'll just have to dig it up.

-- 
Ticket URL: <http://core.trac.wordpress.org/ticket/10522#comment:26>
WordPress Trac <http://core.trac.wordpress.org/>
WordPress blogging software


More information about the wp-trac mailing list