We recently implemented a snmp polling utility using PHP4.0.6 on RedHat 
Linux 7.2 with an Apache webserver.   When people using the polling 
utility do a poll we get leftover sockets that do not seem to go away, 
and after a while the webserver needs to be restarted.   Is there any 
way in PHP to force these connections closed after a while?   Has anyone 
else seen this.   I've got several boxes all exhibiting the same 
behavior after this utility was put in place.

here's some example lsof output, which I got doing
lsof -i -n | grep httpd | grep UDP


httpd     27987 root    8u  IPv4 16889303       UDP *:3865
httpd     27987 root    9u  IPv4 16889304       UDP *:3866
httpd     27987 root   10u  IPv4 16891398       UDP *:4054
httpd     27987 root   11u  IPv4 16895660       UDP *:1826
httpd     27987 root   12u  IPv4 16897200       UDP *:1904

On this particular box I have 731 open UDP sockets, and this is after 
the webserver was started yesterday.   Restarting the webserver does 
resolve the issue.

Thanks for any insight.

Brian Seppanen
[EMAIL PROTECTED]


-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php

Reply via email to