cvs: pear /Net_Server/Server/Driver Fork.php Sequential.php
| From: | Stephan Schmidt | Date: | Wed, 18 Aug 2004 20:48:53 +0000 |
| Subject: | cvs: pear /Net_Server/Server/Driver Fork.php Sequential.php | ||
| Groups: | php.pear.cvs | ||
| Request: | Send a blank email to pear-cvs+get-23086@lists.php.net to get a copy of this message | ||
schst Wed Aug 18 16:48:53 2004 EDT
Modified files:
/pear/Net_Server/Server/Driver Fork.php Sequential.php
Log:
fixed bug #2157 (socket_shutdown not called)
http://cvs.php.net/diff.php/pear/Net_Server/Server/Driver/Fork.php?r1=1.6&r2=1.7&ty=u
Index: pear/Net_Server/Server/Driver/Fork.php
diff -u pear/Net_Server/Server/Driver/Fork.php:1.6 pear/Net_Server/Server/Driver/Fork.php:1.7
--- pear/Net_Server/Server/Driver/Fork.php:1.6 Sun Jul 25 15:24:06 2004
+++ pear/Net_Server/Server/Driver/Fork.php Wed Aug 18 16:48:53 2004
@@ -16,7 +16,7 @@
// | Authors: Stephan Schmidt <schst@php.net> |
// +----------------------------------------------------------------------+
//
-// $Id: Fork.php,v 1.6 2004/07/25 19:24:06 schst Exp $
+// $Id: Fork.php,v 1.7 2004/08/18 20:48:53 schst Exp $
/**
* Forking server class.
@@ -295,6 +295,7 @@
$this->_sendDebugMessage("Closed connection from
".$this->clientInfo[0]["host"]." on port
".$this->clientInfo[0]["port"]);
+ @socket_shutdown($this->clientFD[0], 2);
@socket_close($this->clientFD[0]);
$this->clientFD[0] = null;
unset($this->clientInfo[0]);
http://cvs.php.net/diff.php/pear/Net_Server/Server/Driver/Sequential.php?r1=1.7&r2=1.8&ty=u
Index: pear/Net_Server/Server/Driver/Sequential.php
diff -u pear/Net_Server/Server/Driver/Sequential.php:1.7
pear/Net_Server/Server/Driver/Sequential.php:1.8
--- pear/Net_Server/Server/Driver/Sequential.php:1.7 Fri Jul 2 12:58:42 2004
+++ pear/Net_Server/Server/Driver/Sequential.php Wed Aug 18 16:48:53 2004
@@ -16,7 +16,7 @@
// | Authors: Stephan Schmidt <schst@php.net> |
// +----------------------------------------------------------------------+
//
-// $Id: Sequential.php,v 1.7 2004/07/02 16:58:42 schst Exp $
+// $Id: Sequential.php,v 1.8 2004/08/18 20:48:53 schst Exp $
/**
* Sequential server class.
@@ -315,6 +315,7 @@
$this->_sendDebugMessage("Closed connection (".$id.") from
".$this->clientInfo[$id]["host"]." on port
".$this->clientInfo[$id]["port"]);
+ @socket_shutdown($this->clientFD[$id], 2);
@socket_close($this->clientFD[$id]);
$this->clientFD[$id] = NULL;
unset($this->clientInfo[$id]);
@@ -337,6 +338,7 @@
$this->closeConnection($i);
}
+ @socket_shutdown($this->initFD, 2);
@socket_close($this->initFD);
$this->_sendDebugMessage("Shutdown server.");