Mirai Worm Monitor
services.mirai_worm_monitor.custom_pool module
Mirai Worm Gevent Pool.
-
class
services.mirai_worm_monitor.custom_pool.
CustomPool
(logger, size=0, greenlet_class=None)[source]
Bases: gevent.pool.Pool
An extension of the gevent pool.
If this pool becomes full, it drops the oldest connections instead of waiting for them to end.
-
add
(greenlet)[source]
Add the greenlet to the pool.
-
log_pool_info
()[source]
Debug log pool info.
-
remove_connection
(to_del_source)[source]
Remove connection from pool.
services.mirai_worm_monitor.mirai_worm_monitor_service module