[wp-trac] [WordPress Trac] #13841: Some HTTP Transports do not respect transfer timeouts

WordPress Trac wp-trac at lists.automattic.com
Fri Aug 3 01:30:39 UTC 2012


#13841: Some HTTP Transports do not respect transfer timeouts
-----------------------------------------------+---------------------------
 Reporter:  sivel                              |       Owner:
     Type:  defect (bug)                       |      Status:  new
 Priority:  normal                             |   Milestone:  Future
Component:  HTTP                               |  Release
 Severity:  normal                             |     Version:  3.0
 Keywords:  has-patch needs-testing 3.4-early  |  Resolution:
-----------------------------------------------+---------------------------

Comment (by kurtpayne):

 Replying to [comment:30 DH-Shredder]:
 > Ported unit test to phpunit, in [attachment:13841-unit-test.2.diff], but
 instead of the test failing gracefully without the proper patches, it just
 hangs, since the SimpleSocketServer is designed not to respond (ever).

 Yep.  If the test is running without the patch and
 WP_TESTS_FORCE_KNOWN_BUGS is true, then the tests will hang.  I tried to
 get fancy here to avoid another external call when writing the test.

 I can move this off to a local fork, or child process.  It would probably
 be best to just move it to the new http://api.wordpress.org/core/tests
 site, though.

 The test just needs a URL that will take "a while" (> 2 seconds) to
 respond so we can test the timeouts, but will eventually respond so the
 tests won't hang if the patch isn't available.

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


More information about the wp-trac mailing list