[wp-trac] [WordPress Trac] #17301: Keep the connection open when doing upgrades or long-running operations

WordPress Trac noreply at wordpress.org
Mon Sep 9 03:11:28 UTC 2013


#17301: Keep the connection open when doing upgrades or long-running operations
-----------------------------+------------------
 Reporter:  markjaquith      |       Owner:
     Type:  enhancement      |      Status:  new
 Priority:  normal           |   Milestone:  3.7
Component:  Upgrade/Install  |     Version:
 Severity:  normal           |  Resolution:
 Keywords:                   |
-----------------------------+------------------

Comment (by dd32):

 My initial thoughts on this were that Long-running functions (such as
 `copy_dir()` and `unzip_file()`) could execute a action every iteration,
 such as `upgrader_tick`.
 A function hooked to that could then echo `<!-- Some data -->` every x
 seconds, If we had a method which left the FTP connection idle for a
 decent amount of time, we could also send a FTP NOOP command every x
 seconds.

 Further to the last point, a FTP NOOP command would be good during long-
 running HTTP downloads when doing bulk upgrades, to keep the connection
 open.

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


More information about the wp-trac mailing list