Erik Huelsmann wrote:
> On 11/4/06, Brian Buesker <bbuesker@qualcomm.com> wrote:
>> Why is it that every operation creates a new connection or tunnel? I
>> could see if the perl bindings weren't smart enough to cache connections
>> where a new connection might be used each time, but it seems inefficient
>> to just leave the previous connections open until the perl process
>> terminates. This behavior seems to occur with other operations as well
>> (such as mkdir).
>
> Connections are cleaned up when you clean up the pool in which the
> connection is created. The perl bindings provide a default pool which
> is destructed at the end of the process life, which is why you're
> seeing cleanup at program end.
>
> Use your own pool, or create/cleanup default pools in logical
> locations and you should see the number of connections drop.
Thanks for the help. That sure did result in the connections being
cleaned up. I'm still curious though. If the connections that are stored
within the default pool are not reused for subsequent operations, what
is the reason for keeping them around? Does this just make the
implementation easier, or is there another motivation for keeping these
connections around?
Thanks,
Brian
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@subversion.tigris.org
For additional commands, e-mail: users-help@subversion.tigris.org
Received on Sun Nov 5 18:28:51 2006