Edit report at https://bugs.php.net/bug.php?id=52077&edit=1

 ID:               52077
 Updated by:       [email protected]
 Reported by:      wajim at mail dot ru
 Summary:          SNMP GET/WALK may hangs FOREVER
-Status:           Feedback
+Status:           No Feedback
 Type:             Bug
 Package:          SNMP related
 Operating System: Win XP SP3
 PHP Version:      5.2.13

 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:
------------------------------------------------------------------------
[2011-07-17 09:27:21] [email protected]

Try to use up-to-date Net-SNMP library and report results. UCD-SNMP library 
support is dropped in PHP 5.4.

------------------------------------------------------------------------
[2010-06-19 15:59:57] wajim at mail dot ru

In net-snmp bugtracker I yet did not write.

------------------------------------------------------------------------
[2010-06-19 15:31:47] [email protected]

did you send a patch to the ucd-snmp maintainers?

If your patch is accepted I can then patch our builds, and it will be fixed for 
the next 5.3.x release (can't and won't touch snmp in 5.2 touch).

------------------------------------------------------------------------
[2010-06-19 15:13:44] wajim at mail dot ru

static int _sess_read(void *sessp, fd_set *fdset){
[cut]
    unsigned long unblock; //WAJIM
[cut]
unblock = 1; ioctlsocket(isp->sd, FIONBIO, &unblock); //WAJIM
length = recvfrom(isp->sd, (char *)packet, PACKET_LENGTH, 0, (struct sockaddr 
*)&from, &fromlength);
unblock = 0; ioctlsocket(isp->sd, FIONBIO, &unblock); //WAJIM
[cut]
}

Those my 3 lines in snmp_api.c (ucd-snmp-4.2.7.1) fixes threads hanging. :-)

------------------------------------------------------------------------
[2010-06-19 15:03:22] larryjadams at comcast dot net

Stupid WINSock does not support send and receive timeout socket options.  It's 
a poorly implemented socket api.  The net-snmp guys will have to implement with 
an alarm.  It can not be solved here.  But nice catch.

------------------------------------------------------------------------


The remainder of the comments for this report are too long. To view
the rest of the comments, please view the bug report online at

    https://bugs.php.net/bug.php?id=52077


-- 
Edit this bug report at https://bugs.php.net/bug.php?id=52077&edit=1

Reply via email to