pyzor.forwarder
Manage the forwarder process.
-
class pyzor.forwarder.Forwarder(forwarding_client, remote_servers, max_queue_size=10000)[source]
Bases: object
Forwards digest to remote pyzor servers
-
queue_forward_request(digest, whitelist=False)[source]
If forwarding is enabled, insert a digest into the forwarding queue
if whitelist is True, the digest will be forwarded as whitelist request
if the queue is full, the digest is dropped
-
start_forwarding()[source]
start the forwarding thread
-
stop_forwarding()[source]
disable forwarding and tell the forwarding thread to end itself