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

Re: Reuse of ra_dav sessions considered harmful

From: Philip Martin <philip_at_codematters.co.uk>
Date: 2006-01-05 00:32:51 CET

Garrett Rooney <rooneg@electricjellyfish.net> writes:

> because svn_ra_dav__get_commit_editor uses ne_hook_create_request and
> ne_hook_pre_send to create two hooks, which use batons allocated out
> of the subpool. These hooks never go away (and in fact I can't find
> any API that even lets you make them go away in the current version of
> neon), so the next time through the loop you try to call them again,
> except that the baton is now pointing off into memory that's been
> reused, and you crash.

I've seen something like that before, see setup_neon_request_hook and
r14295. Perhaps you could use a similar approach?

-- 
Philip Martin
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@subversion.tigris.org
For additional commands, e-mail: dev-help@subversion.tigris.org
Received on Thu Jan 5 00:35:12 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.