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

WordPress Trac wp-trac at lists.automattic.com
Mon May 2 06:27:40 UTC 2011


#17301: Keep the connection open when doing upgrades or long-running operations
--------------------------+-----------------------------
 Reporter:  markjaquith   |      Owner:
     Type:  defect (bug)  |     Status:  new
 Priority:  normal        |  Milestone:  Awaiting Review
Component:  General       |    Version:
 Severity:  normal        |   Keywords:
--------------------------+-----------------------------
 When we do long-running operations like upgrades-over-FTP, we may go a
 while without sending any data, which may cause the connection to be
 closed. We should investigate whether we can send some "hey, still here"
 dummy data down the pipe to keep the connection from being unceremoniously
 closed on us.

 For example, Rackspace Cloud Sites runs behind load balancers that cut the
 connection after 30 seconds of no data. I was able to defeat it by
 manually flushing some dummy data like so:

 {{{
 <?php

 for ( $i = 1; $i < 46; $i++ ) {
         echo "$i...<br />\r\n";
         flush();
         sleep( 1 );
 }
 echo "DONE";
 }}}

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


More information about the wp-trac mailing list