Re: stop trapd serivce on windows timeout?

Snmp Nmcsnmp <[email protected]>
Newsgroups gmane.network.net-snmp.user
Message-ID <[email protected]>
On windows XP service pack 3 it does not seem to stop in a timely manner. If I put in the call WSACancelBlockingCall() then it break out fine. I will test it on several version of windows and will broadcast what I learn from it.
thanks,
Huy




________________________________
From: Bart Van Assche <[email protected]>
To: Snmp Nmcsnmp <[email protected]>
Cc: [email protected]
Sent: Sat, May 22, 2010 3:44:07 AM
Subject: Re: stop trapd serivce on windows timeout?

Hello Huy,

The Win32 snmptrapd calls closesocket() on the UDP socket(s) owned by snmptrapd to make select() stop. While this seems to work with some Windows versions (e.g. Windows XP), this is undocumented Winsock behavior. So whether or not this works may depend on the Windows version. On which Windows version did you observe this behavior ?

Bart.



On Fri, May 21, 2010 at 9:54 PM, Snmp Nmcsnmp <[email protected]> wrote:


>
>Hi Bart,
>It is net-snmp-5.4.2.1 and the conf file contains just these two lines:
>
>authCommunity log, net, execute public
>snmpTrapdAddr udp:137.69.187.10:666
>regards,
>Huy
>
>
>
>
________________________________
From: Bart Van Assche <[email protected]>
>To: Snmp Nmcsnmp <[email protected]>
>Cc: [email protected]
>Sent: Fri, May 21, 2010 11:53:33 AM
>Subject: Re: stop trapd serivce on windows timeout?
>
>
>
>On Fri, May 21, 2010 at 7:38 PM, Snmp Nmcsnmp <[email protected]> wrote:
>
>Stop net-snmp trapd on windows timeout and it think it hang on the select. Does anyone have run into the same issue? or have a solution to solve it?
>
>I haven't seen this so far. With which version did this occur ? And how does your snmptrapd.conf look like ?
>
>Bart.
>
>

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

_______________________________________________
Net-snmp-users mailing list
[email protected]
Please see the following page to unsubscribe or change other options:
https://lists.sourceforge.net/lists/listinfo/net-snmp-users
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.