[wp-cvs] wordpress/wp-includes functions.php,1.158,1.159

Matthew Mullenweg saxmatt at users.sourceforge.net
Fri Sep 10 10:55:47 UTC 2004


Update of /cvsroot/cafelog/wordpress/wp-includes
In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv4668/wp-includes

Modified Files:
	functions.php 
Log Message:
Timeout changes. Hat tip: Michael Dale.

Index: functions.php
===================================================================
RCS file: /cvsroot/cafelog/wordpress/wp-includes/functions.php,v
retrieving revision 1.158
retrieving revision 1.159
diff -C2 -d -r1.158 -r1.159
*** functions.php	7 Sep 2004 03:15:48 -0000	1.158
--- functions.php	10 Sep 2004 10:55:44 -0000	1.159
***************
*** 562,566 ****
  	if ( '' == $trackback_url['port'] )
  		$trackback_url['port'] = 80;
! 	$fs = @fsockopen($trackback_url['host'], $trackback_url['port']);
  	@fputs($fs, $http_request);
  /*
--- 562,566 ----
  	if ( '' == $trackback_url['port'] )
  		$trackback_url['port'] = 80;
! 	$fs = @fsockopen($trackback_url['host'], $trackback_url['port'], $errno, $errstr, 4);
  	@fputs($fs, $http_request);
  /*
***************
*** 721,725 ****
  
  		// Try to connect to the server at $host
! 		$fp = fsockopen($host, $port, $errno, $errstr, 30);
  		if (!$fp) {
  			debug_fwrite($log, 'Couldn\'t open a connection to '.$host."\n\n");
--- 721,725 ----
  
  		// Try to connect to the server at $host
! 		$fp = fsockopen($host, $port, $errno, $errstr, 3);
  		if (!$fp) {
  			debug_fwrite($log, 'Couldn\'t open a connection to '.$host."\n\n");
***************
*** 854,858 ****
  
  function getRemoteFile($host,$path) {
!     $fp = fsockopen($host, 80, $errno, $errstr);
      if ($fp) {
          fputs($fp,"GET $path HTTP/1.0\r\nHost: $host\r\n\r\n");
--- 854,858 ----
  
  function getRemoteFile($host,$path) {
!     $fp = fsockopen($host, 80, $errno, $errstr, 5);
      if ($fp) {
          fputs($fp,"GET $path HTTP/1.0\r\nHost: $host\r\n\r\n");




More information about the cvs mailing list