Changeset 1673
- Timestamp:
- 09/16/2004 05:07:59 PM (21 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/wp-includes/class-IXR.php
r1564 r1673 465 465 var $useragent; 466 466 var $response; 467 var $timeout; 468 var $vendor = ''; 467 469 var $message = false; 468 470 var $debug = false; 469 471 // Storage place for an error message 470 472 var $error = false; 471 function IXR_Client($server, $path = false, $port = 80 ) {473 function IXR_Client($server, $path = false, $port = 80, $timeout = 30, $vendor = '') { 472 474 if (!$path) { 473 475 // Assume we have been given a URL instead … … 484 486 $this->path = $path; 485 487 $this->port = $port; 488 $this->timeout = $timeout; 486 489 } 487 490 $this->useragent = 'The Incutio XML-RPC PHP Library'; … … 504 507 echo '<pre>'.htmlspecialchars($request)."\n</pre>\n\n"; 505 508 } 506 $fp = @fsockopen($this->server, $this->port );509 $fp = @fsockopen($this->server, $this->port, $errno, $errstr, $this->timeout); 507 510 if (!$fp) { 508 511 $this->error = new IXR_Error(-32300, 'transport error - could not open socket');
Note: See TracChangeset
for help on using the changeset viewer.