ssh2 doesn't close connections under apache
| From: | mario | Date: | Thu, 10 Feb 2005 23:04:57 +0000 |
| Subject: | ssh2 doesn't close connections under apache | ||
| References: | 1 | Groups: | php.pecl.dev |
| Request: | Send a blank email to pecl-dev+get-1955@lists.php.net to get a copy of this message | ||
hello,
first of all i'd like to express my gratitude for your work on these
libraries.
I have a bit of a problem with ssh2.
I notice after running some php scripts that connect, execute a few
statements and then finish, that there are lingering proccesses on the
remote host a linux box FC2, where a ps ax looks like
7102 ? S 0:00 sshd: watchdog [priv]
7104 ? S 0:00 sshd: watchdog@notty
Upon closer inspection i find that this only happens when using libphp4
regardless of whether i dl load or preload using php.ini extension=ssh2.
When running from the command line this does not happen at all.
When using apache i have found no way around it. I've tried
ssh2_exec($con, 'exit'), unset($con) and exit. There seems to be no hook
for cleanup like there is when when the command line php proccess ends.
And yes restarting apache frees the connections.
Is this a bug or am i doing something wrong?
Any help on this would be appreciated.
mario;>
Micro$oft is nice, as long as it's not required.
We Can Put an End to the Requirement:
http://www.fsf.org/philosophy/no-word-attachments.html
B.T.W. do YOU schmut!? --|-- http://www.schmut.com