Well I've got running and I'm seeing no problems of conflict. No downloads
requests are handled whilst the mutex is locked hence
only a single trap is sent and only any one download requests is handled at
any one time.

----- Original Message -----
From: "Dave Shield" <[EMAIL PROTECTED]>
To: "Gary Clark" <[EMAIL PROTECTED]>
Cc: <[EMAIL PROTECTED]>
Sent: Thursday, October 28, 2004 3:39 AM
Subject: Re: Sending traps in another thread


> Robert> Ok, lets see if I got this right. You have the main agent thread,
> Robert> and two worker threads. The worker threads don't do any SNMP other
> Robert> than to call send_v2trap. Is that right?
>
> Gary> Yep you got it.
>
> Urk!  I'm not sure that's safe.
>
> As far as I remember, doesn't the 'send_trap_vars' mechanism use the
> same (non-thread-safe) set of APIs as the incoming request handling?
> I'd expect this to suffer from problems between generating traps
> and receiving incoming requests.
>
> In order for that to work safely, wouldn't it be necessary to rework
> the 'send_trap_vars' code to use the SSI approach instead?
>
> All of the locking that you talk about sounds to be aimed at a different
> area of potential conflict.  I'm not at all sure that you're protected
> against races within the SNMP library itself.
>
>
> Dave
>
>
>
> -------------------------------------------------------
> This SF.Net email is sponsored by:
> Sybase ASE Linux Express Edition - download now for FREE
> LinuxWorld Reader's Choice Award Winner for best database on Linux.
> http://ads.osdn.com/?ad_id=5588&alloc_id=12065&op=click
> _______________________________________________
> 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



-------------------------------------------------------
This SF.Net email is sponsored by:
Sybase ASE Linux Express Edition - download now for FREE
LinuxWorld Reader's Choice Award Winner for best database on Linux.
http://ads.osdn.com/?ad_id=5588&alloc_id=12065&op=click
_______________________________________________
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

Reply via email to