⚝
One Hat Cyber Team
⚝
Your IP:
216.73.216.96
Server IP:
147.93.97.220
Server:
Linux srv843233 6.8.0-71-generic #71-Ubuntu SMP PREEMPT_DYNAMIC Tue Jul 22 16:52:38 UTC 2025 x86_64
Server Software:
nginx/1.28.0
PHP Version:
8.2.29
Buat File
|
Buat Folder
Eksekusi
Dir :
~
/
usr
/
share
/
doc
/
uwsgi-core
/
tests
/
View File Name :
testworkers.py
""" Regression test for #2056 - uwsgi.workers() leaking objects. """ import uwsgi import gc def application(env, start_response): gc.collect() start_objs = len(gc.get_objects()) for i in range(200): uwsgi.workers() gc.collect() end_objs = len(gc.get_objects()) diff_objs = end_objs - start_objs # Sometimes there is a spurious diff of 4 objects or so. if diff_objs > 10: start_response('500 Leaking', [('Content-Type', 'text/plain')]) yield "Leaking objects...\n".format(diff_objs).encode("utf-8") else: start_response('200 OK', [('Content-Type', 'text/plain')]) yield "{} {} {}\n".format(start_objs, end_objs, diff_objs).encode("utf-8")