You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Some structures allocated by the binding are not being freed/dereffed correctly. A simple testcase:
import resource
import getdns
resolver = getdns.Context()
for i in range(10000):
extensions = {"return_both_v4_and_v6": getdns.EXTENSION_TRUE}
res = resolver.address(name="google.com", extensions=extensions)
if i % 100 == 0:
print(resource.getrusage(resource.RUSAGE_SELF).ru_maxrss)
$ pip3 list|grep getdns
getdns (1.0b0)
The text was updated successfully, but these errors were encountered:
I am facing the same issue. I am performing DNS lookup inside a flask app. So with each request, the memory usage keeps on increasing. The memory gets freed only after the app is restarted/stopped.
Some structures allocated by the binding are not being freed/dereffed correctly. A simple testcase:
import resource
import getdns
resolver = getdns.Context()
for i in range(10000):
extensions = {"return_both_v4_and_v6": getdns.EXTENSION_TRUE}
res = resolver.address(name="google.com", extensions=extensions)
if i % 100 == 0:
print(resource.getrusage(resource.RUSAGE_SELF).ru_maxrss)
$ pip3 list|grep getdns
getdns (1.0b0)
The text was updated successfully, but these errors were encountered: