php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #28534 open socket leak
Submitted: 2004-05-26 17:57 UTC Modified: 2004-05-26 21:25 UTC
Votes:1
Avg. Score:3.0 ± 0.0
Reproduced:1 of 1 (100.0%)
Same Version:0 (0.0%)
Same OS:1 (100.0%)
From: fsedano at hotmail dot com Assigned:
Status: Not a bug Package: SNMP related
PHP Version: 4.3.3 OS: linux
Private report: No CVE-ID: None
Welcome back! If you're the original bug submitter, here's where you can edit the bug or add additional notes.
If you forgot your password, you can retrieve your password here.
Password:
Status:
Package:
Bug Type:
Summary:
From: fsedano at hotmail dot com
New email:
PHP Version: OS:

 

 [2004-05-26 17:57 UTC] fsedano at hotmail dot com
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: 





Patches

Pull Requests

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2004-05-26 21:25 UTC] fsedano at hotmail dot com
-- Maybe a dup of 25636? I'll check.
 
PHP Copyright © 2001-2025 The PHP Group
All rights reserved.
Last updated: Wed Jan 15 13:01:29 2025 UTC