Package home | Report new bug | New search | Development Roadmap Status: Open | Feedback | All | Closed Since Version 1.0.3

Request #1946 more info in debug
Submitted: 2004-07-22 09:17 UTC
From: k dot gornik at fr dot pl Assigned: schst
Status: Closed Package: Net_Server
PHP Version: 4.3.7 OS: Slackware 10.0 kernel 2.4.26
Roadmaps: (Not assigned)    
Subscription  


 [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

Comments

 [2004-08-21 22:04 UTC] schst
Thank you for your bug report. This issue has been fixed in the latest released version of the package, which you can download at http://pear.php.net/get/Net_Server