[wp-trac] [WordPress Trac] #34796: Facing an issue when using wp_remote_get with streams (non-blocking mode)

WordPress Trac noreply at wordpress.org
Mon Nov 30 17:44:29 UTC 2015


#34796: Facing an issue when using wp_remote_get with streams (non-blocking mode)
-----------------------------------------+-----------------------------
 Reporter:  bangelov                     |       Owner:  rmccue
     Type:  defect (bug)                 |      Status:  accepted
 Priority:  normal                       |   Milestone:  Future Release
Component:  HTTP API                     |     Version:  4.3.1
 Severity:  normal                       |  Resolution:
 Keywords:  has-patch reporter-feedback  |     Focuses:
-----------------------------------------+-----------------------------

Comment (by bangelov):

 Hi @rmccue Thanks for your attention! I've tried the above code using
 stream_select but unfortunately it doesn't work on wpengine.com That is
 the main environment that I am using for test, because there I can
 reproduce the problem. I've tested it with timeout 50, 500, 5000, 500000
 and it stuck the same way as it was without stream_select. The only way I
 was able to made successful request was with usleep. Yes it's a bit of a
 hack but I am out of ideas what could be the problem. Btw I've dumped the
 response from stream_select and it's true so that function runs properly,
 but it doesn't prevent stuck problem. Do you have any other idea what we
 could try? Thanks!

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


More information about the wp-trac mailing list