#27661 [Fbk->NoF]: snmpget does not close the socket after query

From: Date: Thu, 01 Apr 2004 16:55:25 +0000
Subject: #27661 [Fbk->NoF]: snmpget does not close the socket after query
References: 1  Groups: php.bugs 
Request: Send a blank email to php-bugs+get-57331@lists.php.net to get a copy of this message
ID: 27661 Updated by: iliaa@php.net Reported By: karel_1980 at hotmail dot com -Status: Feedback +Status: No Feedback Bug Type: SNMP related Operating System: Win XP SP1 PHP Version: 4.3.5RC4 Assigned To: iliaa New Comment: No feedback was provided. The bug is being suspended because we assume that you are no longer experiencing the problem. If this is not the case and you are able to provide the information that was requested earlier, please do so and change the status of the bug back to "Open". Thank you. Previous Comments: ------------------------------------------------------------------------ [2004-03-26 14:02:16] iliaa@php.net Please try latest CVS. There was a leak in PHP 5.0 that was fixed, but I do not see that problem in PHP4 sources. ------------------------------------------------------------------------ [2004-03-23 15:06:45] karel_1980 at hotmail dot com Description: ------------ using snmpget(...) multiple times to monitor a snmp device will cause an error: Warning: snmpget(): Could not open snmp connection: Invalid local port in D:\Server\WWW\php\snmp\background2.php on line 20 This happens on php version 4.3.4 and 4.3.5RC2 This is propably because the snmpget doensnt close the socket after using and does not reuse it. Reproduce code: --------------- while(TRUE){ snmpget("192.168.1.1", "public", ".1.3.6.1.2.1.2.2.1.16.2"), " "); } Expected result: ---------------- simply run endlessly. Actual result: -------------- Wil give an error after using all sockets. ------------------------------------------------------------------------ -- Edit this bug report at http://bugs.php.net/?id=27661&edit=1

« previous php.bugs (#57331) next »