Re: [Agentx] Benefit of multiple sessions per sub-agent connection

"Randy Presuhn" <randy_presuhn@mindspring.com> Fri, 02 July 2010 04:12 UTC

Return-Path: <randy_presuhn@mindspring.com>
X-Original-To: agentx@core3.amsl.com
Delivered-To: agentx@core3.amsl.com
Received: from localhost (localhost [127.0.0.1]) by core3.amsl.com (Postfix) with ESMTP id B77993A6821 for <agentx@core3.amsl.com>; Thu, 1 Jul 2010 21:12:13 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -0.244
X-Spam-Level:
X-Spam-Status: No, score=-0.244 tagged_above=-999 required=5 tests=[AWL=0.496, BAYES_20=-0.74]
Received: from mail.ietf.org ([64.170.98.32]) by localhost (core3.amsl.com [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id eBfxeLoVwCc4 for <agentx@core3.amsl.com>; Thu, 1 Jul 2010 21:12:12 -0700 (PDT)
Received: from elasmtp-galgo.atl.sa.earthlink.net (elasmtp-galgo.atl.sa.earthlink.net [209.86.89.61]) by core3.amsl.com (Postfix) with ESMTP id 80E3A3A6806 for <agentx@ietf.org>; Thu, 1 Jul 2010 21:12:11 -0700 (PDT)
DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=dk20050327; d=mindspring.com; b=SC1F05Ynt9Q3O83+hnwLe2BTY85HttFUlAd6F3LBYOLxg0Ehv8mhrQZUdGeZRO19; h=Received:Message-ID:From:To:References:Subject:Date:MIME-Version:Content-Type:Content-Transfer-Encoding:X-Priority:X-MSMail-Priority:X-Mailer:X-MimeOLE:X-ELNK-Trace:X-Originating-IP;
Received: from [99.41.48.72] (helo=oemcomputer) by elasmtp-galgo.atl.sa.earthlink.net with esmtpa (Exim 4.67) (envelope-from <randy_presuhn@mindspring.com>) id 1OUXbn-0000Am-4w for agentx@ietf.org; Fri, 02 Jul 2010 00:12:11 -0400
Message-ID: <000601cb199c$f5e96f60$6801a8c0@oemcomputer>
From: "Randy Presuhn" <randy_presuhn@mindspring.com>
To: <agentx@ietf.org>
References: <AANLkTim0hJMvTOz1gZUXcnFIt73A6RGm8CgehPxKB7NS@mail.gmail.com><001601cb1966$500d5240$6801a8c0@oemcomputer> <AANLkTimgHjn3id6jbmaOBXKfnvkBSgdCzxLbuuag5tD_@mail.gmail.com>
Date: Thu, 1 Jul 2010 21:13:16 -0700
MIME-Version: 1.0
Content-Type: text/plain; charset="iso-8859-1"
Content-Transfer-Encoding: 7bit
X-Priority: 3
X-MSMail-Priority: Normal
X-Mailer: Microsoft Outlook Express 6.00.2800.1478
X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1478
X-ELNK-Trace: 4488c18417c9426da92b9037bc8bcf44d4c20f6b8d69d888a91fc72053278035cdabac62523e08aa7dfcfb7f58818a35350badd9bab72f9c350badd9bab72f9c
X-Originating-IP: 99.41.48.72
Subject: Re: [Agentx] Benefit of multiple sessions per sub-agent connection
X-BeenThere: agentx@ietf.org
X-Mailman-Version: 2.1.9
Precedence: list
List-Id: SNMP Agent Extensibility <agentx.ietf.org>
List-Unsubscribe: <https://www.ietf.org/mailman/listinfo/agentx>, <mailto:agentx-request@ietf.org?subject=unsubscribe>
List-Archive: <http://www.ietf.org/mail-archive/web/agentx>
List-Post: <mailto:agentx@ietf.org>
List-Help: <mailto:agentx-request@ietf.org?subject=help>
List-Subscribe: <https://www.ietf.org/mailman/listinfo/agentx>, <mailto:agentx-request@ietf.org?subject=subscribe>
X-List-Received-Date: Fri, 02 Jul 2010 04:12:14 -0000

Hi -

> From: "Julian Scheid" <julians37@googlemail.com>
> To: "Randy Presuhn" <randy_presuhn@mindspring.com>
> Cc: <agentx@ietf.org>
> Sent: Thursday, July 01, 2010 4:36 PM
> Subject: Re: [Agentx] Benefit of multiple sessions per sub-agent connection
...
> Sure, but even when hiding the ID, exposing a session object
> complicates the API slightly - now people have to interact with two
> objects rather than one.  There'll be an additional call to create the
> session and users will have to worry about things like the session
> object becoming invalid when the connection is closed. Not that big of
> a deal but if those details can be hidden, all the better.

Depending on your environment, you may want to consider how you
handle multiple transports.  Also, if you're working with a select() paradigm
in an event-driven system, for example, there's good reason to separate
the notion of connection from the notion of session.

Randy