Dear Jan-Oliver ,

Thanks for your reply , actually , i have solved this problem , it was my
problem not openvas-libraries problem , the leak comes from commenting
kb_delete function , which not only clears Redis DB but also destroys the
socket connection , so basically , by commenting out this function with
each script that runs , i am opening sockets but not closing it , by
separating this function into two functions , each with specific distinct
action , it solved the problem, there is no leak now.



On Tue, Mar 7, 2017 at 12:18 PM, Jan-Oliver Wagner <
jan-oliver.wag...@greenbone.net> wrote:

> Hi,
>
> Am Freitag, 24. Februar 2017, 12:44:22 schrieb Mohamed Ibrahim:
> > I created a golang wrapper interface against openvas-libraries project,
>
> thats a cool thing. I also have in mind to go for go with some parts
> of OpenVAS.
>
> > In my golang wrapper , before running  a script , i am checking Mandatory
> > keys against redis database,
> >
> > Assume the following scenario,
> >
> > gb_mongodb_no_auth =depends_on => gb_mongodb_detect
> > =depends_on=>find_service.nasl
> >
> > my wrapper , traverse the dependency tree successfully, running
> findservice
> > then mongodb_detect then mongodb_no_auth.
> >
> > but there is a problem , when mongodb_no_auth script runs , the key
> > inserted "Services/mongodb" and "mongodb/installed" are already flushed
> > from the database from openvas-libraries .so file, that is why when my
> > wrapper runs mongodb_no_auth , it does not run it because the keys are
> > already flushed and removed from previous script session.
> >
> > How can i solve such a problem ? Please help
>
> I assume you are working with the OpenVAS-8 code?
> Please note my othe post, that openvas-libraries is moved into gvm-libs
> and openvas-scanner.
>
> Which redis version are you running?
>
> I am not aware of problems like you describe, so we need understand
> some more details.
>
> Best
>
> Jan
>
> --
> Dr. Jan-Oliver Wagner |  +49-541-760278-0  |  http://www.greenbone.net/
> Greenbone Networks GmbH, Neumarkt 12, 49074 Osnabrück | AG Osnabrück, HR B
> 202460
> Geschäftsführer: Lukas Grunwald, Dr. Jan-Oliver Wagner
> _______________________________________________
> Openvas-devel mailing list
> Openvas-devel@wald.intevation.org
> https://lists.wald.intevation.org/cgi-bin/mailman/listinfo/openvas-devel
>
_______________________________________________
Openvas-devel mailing list
Openvas-devel@wald.intevation.org
https://lists.wald.intevation.org/cgi-bin/mailman/listinfo/openvas-devel

Reply via email to