|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
[2004-05-26 21:25 UTC] fsedano at hotmail dot com
|
|||||||||||||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Wed Oct 29 10:00:01 2025 UTC |
Description: ------------ When making several snmp GETs, php leaks sockets each time. Reproduce code: --------------- for( $i=0;$i<4096;$i++ ) { printf( "Iteracion %d: %s<p>",$i, snmpget( "10.129.1.38", "public", ".1.3.6.1.2.1.1.1.0" )); } Expected result: ---------------- No limit in snmp get. Actual result: -------------- Iteracion 1012: Linux webmon 2.4.21-192-default #1 Wed Feb 18 19:26:28 UTC 2004 i686 Iteracion 1013: Linux webmon 2.4.21-192-default #1 Wed Feb 18 19:26:28 UTC 2004 i686 Warning: snmpget(): Could not open snmp connection: No socket (Too many open files) in /srv/www/webmon/p1.php on line 5 Iteracion 1014: Warning: snmpget(): Could not open snmp connection: No socket (Too many open files) in /srv/www/webmon/p1.php on line 5 Iteracion 1015: