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

Re: svn commit: r19258 - in branches/svnserve-ssl/subversion: include libsvn_subr

From: mark benedetto king <mbk_at_lowlatency.com>
Date: 2006-04-09 00:15:57 CEST

On Sat, Apr 08, 2006 at 08:43:21AM -0700, Justin Erenkrantz wrote:
> On 4/8/06, Greg Hudson <ghudson@mit.edu> wrote:
> > I hope I am only the first to say: ick.
>
> +1.
>

Greg/Justin:

I wish svn_stream were already extensible. It wasn't.

> > If you want to extend an svn stream, why do you need to muck with the
> > svn_stream interface? Just create some other functions which operate on
> > the same object as the stream's baton.
>

Greg:

The original implementation added "timeout" and "data_pending" callbacks,
to which you (quite reasonably) objected (on the grounds that they were
too specific to a particular use):

http://svn.haxx.se/dev/archive-2004-11/1211.shtml

This approach does not pollute the stream interface, instead it makes
it more flexible; callers can now arbitrarily extend the new interface.

I don't see how to create some other functions which operate on the
stream's baton, because I don't see how to get the stream to cough
up its baton. I figured that was by design, otherwise I would have
just added a "get_baton" method and avoided this discussion entirely.

I really do think this is better than making a clone of the svn_stream
implementation inside of libsvn_ra_svn, which is the next-easiest
way that comes to mind.

Is there something I'm missing, or is that what you're suggesting
and we simply disagree?

> Or, just wrap the stream with another stream. OpenSSL offers buffer
> streams - so SSL should just be implemented as a stream wrapper: like
> Base64, svndiff, etc. -- justin

Justin:

How is that different from what was in the svnserve-ssl branch before
I rebranched?

--ben

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@subversion.tigris.org
For additional commands, e-mail: dev-help@subversion.tigris.org
Received on Sun Apr 9 03:25:17 2006

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.