Re: How to check port conection? socket_connect and fsockopen have problems
| From: | Sherry | Date: | Mon, 10 May 2004 13:59:19 +0000 |
| Subject: | Re: How to check port conection? socket_connect and fsockopen have problems | ||
| References: | 1 | Groups: | php.windows |
| Request: | Send a blank email to php-windows+get-23655@lists.php.net to get a copy of this message | ||
I don't need 1000 times at once...
But I want to check ports periodically...
For example, every 2 minutes I must check 10 ports... So 1000 times * 2 / 10
= 200 minutes = only 3 hours... :(
So, in one week, I'll have 7*24*60*10/2=50 000 connection in LISTENING
state!
To close these connection, I have to restart apache service... :(
Best regards,
Sherry.
"B.A.T. Svensson" <B.A.T.Svensson@lumc.nl>
> Why do you need to call a socket 1000 times in order
> to find out if a service is available or not?