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
View Add Comment Developer Edit
Welcome! If you don't have a Git account, you can't do anything here.
You can add a comment by following this link or if you reported this bug, you can edit this bug over here.
(description)
Block user comment
Status: Assign to:
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

Add a Patch

Pull Requests

Add a Pull Request

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-2020 The PHP Group
All rights reserved.
Last updated: Mon Mar 30 08:01:26 2020 UTC