[Date Prev][Date Next] [Chronological] [Thread] [Top]

Re: Bind - Unbind



There's a bi_connection_destroy hook in BackendInfo which is called when
the connection is closed.  I think that's the appropriate place to cleanup
resources allocated during a connection.  This is what do, for instance,
back-ldap and back-meta.

p.

> I am still playing around with the PerlBackend. Now I am implementing
> session management in my Perl Objects.
> I maintain a connection pool where I have information about the active
> connections.
> Normally makes a bind, after when he is done is makes unbind. The user
> could however simply forget to program an unbind.
> The frontend makes a Connection_close, if it sees that the connection
> ends. How does the backend get notice of this ? I have seen only close
> functions for the backend and the backend DB not for a connection.
>
> Thx a lot
>
> Reinhard


-- 
Pierangelo Masarati
mailto:pierangelo.masarati@sys-net.it


    SysNet - via Dossi,8 27100 Pavia Tel: +390382573859 Fax: +390382476497