[redland-dev] MySQL Free Connections
Sebastian Dietzold
sebastian at dietzold.de
Fri Aug 5 17:05:08 BST 2005
quote Dave Beckett (5.8.2005):
> > Hi there, i use the php bindings of redland 1.0.2 and my problem is
> > that there are up to 5 connections created each time i http-request a
> > script. these conns are not closed after the request so its easy
> > possible to dos every mysql-db.
> > i've seen this topic is not new but two it was solved by a patch file
> > which is now out of date.
>
> It's applied to redland 1.0.2 as far as I know.
>
> > it is possible to prevent this or is there a work-around?
>
> Your script frees the librdf_model and librdf_storage it uses? It's the
> latter that'll will close the connection.
yes, i free both the model and the storage.
btw, if i try to free world, query_results or query the php process
crashes with an segfault.
S.
--
http://sebastian.dietzold.de/
More information about the redland-dev
mailing list