Make WordPress Core


Ignore:
Timestamp:
09/10/2004 10:55:44 AM (22 years ago)
Author:
saxmatt
Message:

Timeout changes. Hat tip: Michael Dale.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/wp-includes/functions.php

    r1617 r1637  
    562562        if ( '' == $trackback_url['port'] )
    563563                $trackback_url['port'] = 80;
    564         $fs = @fsockopen($trackback_url['host'], $trackback_url['port']);
     564        $fs = @fsockopen($trackback_url['host'], $trackback_url['port'], $errno, $errstr, 4);
    565565        @fputs($fs, $http_request);
    566566/*
     
    721721
    722722                // Try to connect to the server at $host
    723                 $fp = fsockopen($host, $port, $errno, $errstr, 30);
     723                $fp = fsockopen($host, $port, $errno, $errstr, 3);
    724724                if (!$fp) {
    725725                        debug_fwrite($log, 'Couldn\'t open a connection to '.$host."\n\n");
     
    854854
    855855function getRemoteFile($host,$path) {
    856     $fp = fsockopen($host, 80, $errno, $errstr);
     856    $fp = fsockopen($host, 80, $errno, $errstr, 5);
    857857    if ($fp) {
    858858        fputs($fp,"GET $path HTTP/1.0\r\nHost: $host\r\n\r\n");
Note: See TracChangeset for help on using the changeset viewer.