[wp-trac] Re: [WordPress Trac] #7514: Fatal error when fsockopen times out

WordPress Trac wp-trac at lists.automattic.com
Thu Aug 14 21:28:19 GMT 2008


#7514: Fatal error when fsockopen times out
----------------------------+-----------------------------------------------
 Reporter:  azaozz          |        Owner:  anonymous
     Type:  defect          |       Status:  new      
 Priority:  normal          |    Milestone:  2.7      
Component:  Administration  |      Version:           
 Severity:  normal          |   Resolution:           
 Keywords:                  |  
----------------------------+-----------------------------------------------
Comment (by azaozz):

 You're right, it seems fsockopen doesn't obey the connect timeout for some
 reason. There's a note in the manual too: "Depending on the environment,
 the Unix domain or the optional connect timeout may not be available."

 Perhaps the best way to handle this would be to not even use fsockopen if
 one of the other transports is available, even if it fails to
 connect/reaches the timeout. Then we can assume the target server is not
 accessible and stop further processing.

-- 
Ticket URL: <http://trac.wordpress.org/ticket/7514#comment:9>
WordPress Trac <http://trac.wordpress.org/>
WordPress blogging software


More information about the wp-trac mailing list