PEAR is discontinued

This is a static archive preserving historical releases and metadata. No new packages or updates will be published. For updates to existing packages, or to publish new packages, please use Composer and Packagist.

Home » Networking » Net_Server » Bug #1946

more info in debug

Details

Request #1946more info in debug
Submitted2004-07-22 09:17 UTC
Fromk dot gornik at fr dot pl
Assignedschst
StatusClosed
PackageNet_Server
PHP Version4.3.7
OSSlackware 10.0 kernel 2.4.26
Roadmaps(Not assigned)

Comments

[2004-07-22 09:17 UTC] k dot gornik at fr dot pl

Description:
------------
In Net/Server/Driver/Fork.php (0.11.4)
in log info about sent/received data carries no information about client host/port, it becames not useful in Fork server, problem comes from sendData() and serviceRequest() functions

Reproduce code:
---------------
@@ -192,1 +192,1 @@
-$this->_sendDebugMessage("Received ".trim($data)." from ".$i);
+$this->_sendDebugMessage("Received \"".trim($data)." from: ".$this->clientInfo[0]["host"].":".$this->clientInfo[0]["port"]." \"");
@@ -248,4 +248,4 @@
-$this->_sendDebugMessage("sending: \"" . $data . "\" to:
".getmypid() );

+$this->_sendDebugMessage("sending: \"" . $data . "\" to:
".$this->clientInfo[0]["host"].":".$this->clientInfo[0]["port"]) );
}

if (!@socket_write($this->clientFD[0], $data)) {

-$this->_sendDebugMessage("Could not write '".$data."' client ".getmypid()." (".$this->getLastSocketError($this->clientFD[0]).").");

-$this->_sendDebugMessage("Could not write '".$data."' client ".$this->clientInfo[0]["host"].":".$this->clientInfo[0]["port"]." (".$this->getLastSocketError($this->clientFD[0]).").");

Expected result:
----------------
2004-07-22 10:41:43 Received "incoming_blabla" from: 192.168.0.4:40335
2004-07-22 10:41:43 sending: "outgoing_blabla " to: 192.168.0.4:40335

Actual result:
--------------
2004-07-22 10:41:43 Received incoming_blabla from
2004-07-22 10:41:43 sending: "outgoing_blabla " to: 30048