[svn.haxx.se] · SVN Dev · SVN Users · SVN Org · TSVN Dev · TSVN Users · Subclipse Dev · Subclipse Users · this month's index

Re: credential caching and pool/session lifetime errors

From: Philip Martin <philip_at_codematters.co.uk>
Date: 2003-11-17 01:02:45 CET

Greg Hudson <ghudson@MIT.EDU> writes:

> On Sun, 2003-11-16 at 18:37, Philip Martin wrote:
>> Does that mean it's an error to clear the pool while the session baton
>> is still in use? Isn't clearing the pool the way connections get
>> closed?
>
> Yes, it's an error to clear the pool while the session baton is still in
> use, but I think you misphrased that question. The session baton is no
> longer in use when the pool is cleared; the cached credentials are.
> Cached credentials should be allocated in the pool of the auth baton,
> not in the pool passed to svn_auth_{first,next}_credentials().

I was (and still am) confused by svn_ra_local__open which allocates
and stores the credentials in the session baton, I guess that's a red
herring. svn_auth_first_credentials gets a pool argument, and uses it
to allocate the credentials stored in the auth baton. Should
svn_auth_first_credentials be using the auth baton pool? I'm also
wondering why it's necessary for svn_ra_local__open to cache the
credentials.

-- 
Philip Martin
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@subversion.tigris.org
For additional commands, e-mail: dev-help@subversion.tigris.org
Received on Mon Nov 17 01:03:43 2003

This is an archived mail posted to the Subversion Dev mailing list.

This site is subject to the Apache Privacy Policy and the Apache Public Forum Archive Policy.