[wp-trac] [WordPress Trac] #28616: ftp_fput should have a retry threshold

WordPress Trac noreply at wordpress.org
Thu Sep 22 15:50:15 UTC 2016


#28616: ftp_fput should have a retry threshold
----------------------------------------+------------------------------
 Reporter:  runderwo                    |       Owner:
     Type:  defect (bug)                |      Status:  new
 Priority:  normal                      |   Milestone:  Awaiting Review
Component:  Filesystem API              |     Version:  3.9
 Severity:  normal                      |  Resolution:
 Keywords:  has-patch needs-unit-tests  |     Focuses:
----------------------------------------+------------------------------
Changes (by stevenlinx):

 * keywords:  needs-patch => has-patch needs-unit-tests


Comment:

 1.) "...a new option in PHP to ftp_set_option() to control the number of
 connection retries"

 I don't think PHP will ever provide such thing because the response of
 each iteration could be different and should be handled by the users.

 2.) I think the best way forward may be to simply limit the number of
 retries? I don't foresee how simply giving the upload code a second or
 third try can impact other calling code.

--
Ticket URL: <https://core.trac.wordpress.org/ticket/28616#comment:4>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform


More information about the wp-trac mailing list