Re: KITTEN: IETF 75 - 76

Michael B Allen <miallen@ioplex.com> Thu, 03 September 2009 18:53 UTC

Return-Path: <miallen@ioplex.com>
X-Original-To: kitten@core3.amsl.com
Delivered-To: kitten@core3.amsl.com
Received: from localhost (localhost [127.0.0.1]) by core3.amsl.com (Postfix) with ESMTP id 9AF0F3A6804 for <kitten@core3.amsl.com>; Thu, 3 Sep 2009 11:53:56 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -2.282
X-Spam-Level:
X-Spam-Status: No, score=-2.282 tagged_above=-999 required=5 tests=[AWL=0.273, BAYES_00=-2.599, DATE_IN_PAST_03_06=0.044]
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 gBP569tgfdfN for <kitten@core3.amsl.com>; Thu, 3 Sep 2009 11:53:55 -0700 (PDT)
Received: from mail.ioplex.com (li31-113.members.linode.com [207.192.69.113]) by core3.amsl.com (Postfix) with ESMTP id 8F5DA3A6826 for <kitten@ietf.org>; Thu, 3 Sep 2009 11:53:55 -0700 (PDT)
Received: from proton.foo.net (pool-71-187-189-103.nwrknj.fios.verizon.net [71.187.189.103]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) (Authenticated sender: miallen) by mail.ioplex.com (Postfix) with ESMTP id 1606D411DC; Thu, 3 Sep 2009 11:17:49 -0400 (EDT)
Date: Thu, 03 Sep 2009 11:17:49 -0400
From: Michael B Allen <miallen@ioplex.com>
To: Jeffrey Hutzelman <jhutz@cmu.edu>
Subject: Re: KITTEN: IETF 75 - 76
Message-Id: <20090903111749.267187da.miallen@ioplex.com>
In-Reply-To: <A24265FEB13A8A10136EC243@minbar.fac.cs.cmu.edu>
References: <4A87A69A.3050408@sun.com> <4A87E02D.7030503@isode.com> <200908180013.29152.leifj@mnt.se> <20090901131202.137bdd90.miallen@ioplex.com> <20090901173110.GL1033@Sun.COM> <396484EF-9812-40CE-9221-F1A1319FD10B@kth.se> <20090901181307.fe1d4efa.miallen@ioplex.com> <98F14484-1B48-45A1-86E7-5E78383F5109@kth.se> <20090901214059.17a309e6.miallen@ioplex.com> <4A9E22D9.9050405@samba.org> <20090902153241.GJ1033@Sun.COM> <24246_1251926735_n82LPYA9008569_20090902172015.da056c19.miallen@ioplex.com> <A24265FEB13A8A10136EC243@minbar.fac.cs.cmu.edu>
Organization: IOPLEX Software
X-Mailer: Sylpheed 2.6.0 (GTK+ 2.12.12; i386-redhat-linux-gnu)
Mime-Version: 1.0
Content-Type: text/plain; charset="US-ASCII"
Content-Transfer-Encoding: 7bit
Cc: kitten@ietf.org, Love@core3.amsl.com, Volker Lendecke <vl@SerNet.DE>, Nicolas Williams <Nicolas.Williams@sun.com>
X-BeenThere: kitten@ietf.org
X-Mailman-Version: 2.1.9
Precedence: list
List-Id: Common Authentication Technologies - Next Generation <kitten.ietf.org>
List-Unsubscribe: <https://www.ietf.org/mailman/listinfo/kitten>, <mailto:kitten-request@ietf.org?subject=unsubscribe>
List-Archive: <http://www.ietf.org/mail-archive/web/kitten>
List-Post: <mailto:kitten@ietf.org>
List-Help: <mailto:kitten-request@ietf.org?subject=help>
List-Subscribe: <https://www.ietf.org/mailman/listinfo/kitten>, <mailto:kitten-request@ietf.org?subject=subscribe>
X-List-Received-Date: Thu, 03 Sep 2009 18:53:56 -0000

On Thu, 03 Sep 2009 10:38:49 -0400
Jeffrey Hutzelman <jhutz@cmu.edu> wrote:
> > There is another model:
> >
> >> > while (1) {
> >         gss_process_events(&minor, ...);
> >> >
> >> > 	ret = gss_call(&minor, GSS_C_NOWAIT, ...);
> >> > 	if (ret != 0 && minor == EAGAIN) {
> >> > 		continue;
> >> > 	}
> >> > 	...
> >> > 	break;
> >> > }
> 
> That's not another model.  That's equivalent to using the synchronous form 
> of the call, if gss_process_events() blocks until the mech is ready to be 
> called, or to polling, if it eventually times out.

But there only needs to be one caller of gss_process_events for any number of NOWAIT calls. So you can build event loops with it. I'm not sure I understand the callback model being discussed but it seems to be an event loop powered by a separate thread firing callbacks in response to changes in status of calls. If that is in fact the case, you could build the callback model you're talking about using only the NOWAIT flag model I'm talking about.

Mike

-- 
Michael B Allen
Java Active Directory Integration
http://www.ioplex.com/