[wp-trac] [WordPress Trac] #23310: WP_Http_Curl doesn't return errors for non-blocking requests

WordPress Trac noreply at wordpress.org
Tue Jan 29 03:18:58 UTC 2013


#23310: WP_Http_Curl doesn't return errors for non-blocking requests
----------------------------+------------------------------
 Reporter:  SergeyBiryukov  |       Owner:
     Type:  defect (bug)    |      Status:  new
 Priority:  normal          |   Milestone:  Awaiting Review
Component:  HTTP            |     Version:
 Severity:  normal          |  Resolution:
 Keywords:  has-patch       |
----------------------------+------------------------------

Comment (by rmccue):

 Replying to [comment:2 dd32]:
 > How long does the functions take to execute with that change? I mean,
 Does the function still return almost instantly, or does it sit around and
 wait for the HTTP connection to do something?

 AFAIK, `curl_error()` will only give you the connection errors when using
 non-blocking requests, so it's only an instant socket error. I haven't
 tested this thoroughly though.

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


More information about the wp-trac mailing list