Re: php in free()

From: Date: Tue, 18 Dec 2001 09:07:33 +0000
Subject: Re: php in free()
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-78045@lists.php.net to get a copy of this message
I'm not sure which way you create the connection, but I suppose that you use FSockOpen.. This is a buggy function, as far as I know.. Zend promised to take care of it in the 4.0.4 release of PHP, but since that nothing has changed, apparently. I had the same problem some week ago. In the end I had to use PERL script via PHP function exec(). And here's the bug: After calling a socket, PHP interpreter simply keeps all data in memory, doesn;t close connection, keeps trying to read, and finaly stucks.. which can lead to an extreme overload on your server (tried it on Apache and IIS).

« previous php.general (#78045) next »