/usr/lib/python2.6/site-packages/pyzor-1.0.0-py2.6.egg/pyzor
NameSizeModeActions
engines/-0755rm
hacks/-0755rm
account.py25460755editdlrm
account.pyc34320644editdlrm
client.py108140755editdlrm
client.pyc138220644editdlrm
config.py91670755editdlrm
config.pyc86650644editdlrm
digest.py58790755editdlrm
digest.pyc68260644editdlrm
forwarder.py25680755editdlrm
forwarder.pyc31150644editdlrm
message.py40230755editdlrm
message.pyc96410644editdlrm
server.py157770755editdlrm
server.pyc173190644editdlrm
__init__.py14100755editdlrm
__init__.pyc26530644editdlrm
Edit: /usr/lib/python2.6/site-packages/pyzor-1.0.0-py2.6.egg/pyzor/forwarder.pyc (3115B)
Ńň H<Vc @sjdZddkZddkZyddkZWnej oddkZnXdefd„ƒYZdS(sManage the forwarder process.i˙˙˙˙Nt ForwardercBsAeZdZdd„Zd„Zed„Zd„Zd„ZRS(s'Forwards digest to remote pyzor serversi'cCs:tidƒ|_||_ti|ƒ|_||_dS(s forward_client: a pyzor.client.Client instance to use as forwarding client remote_servers: a list of (hostname,port) tuples where digests should be forwarded to max_queue_size: max amount of queued digests tpyzordN(tloggingt getLoggertlogtforwarding_clienttQueuet forward_queuetremote_servers(tselfRRtmax_queue_size((sI/usr/lib/python2.6/site-packages/pyzor-1.0.0-py2.6.egg/pyzor/forwarder.pyt__init__s  c CsăxÜtoÔy%|iidtddƒ\}}Wn.tij o|idjodSqnXxw|iD]l}y5|o|ii||ƒn|ii ||ƒWqjt j o"}|i i d|||ƒqjXqjWqWdS(s'read forwarding requests from the queuetblockttimeoutiNs%Forwarding digest %s to %s failed: %s( tTrueRtgetRtEmptyRtNoneRt whitelisttreportt ExceptionRtwarn(R tdigestRtservertex((sI/usr/lib/python2.6/site-packages/pyzor-1.0.0-py2.6.egg/pyzor/forwarder.pyt _forward_loops$  cCsL|idjodSy|ii||fƒWntij onXdS(sĐ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 N(RRRt put_nowaitRtFull(R RR((sI/usr/lib/python2.6/site-packages/pyzor-1.0.0-py2.6.egg/pyzor/forwarder.pytqueue_forward_request5s cCstid|iƒiƒdS(sstart the forwarding threadttargetN(t threadingtThreadRtstart(R ((sI/usr/lib/python2.6/site-packages/pyzor-1.0.0-py2.6.egg/pyzor/forwarder.pytstart_forwardingBscCs d|_dS(s?disable forwarding and tell the forwarding thread to end itselfN(RR(R ((sI/usr/lib/python2.6/site-packages/pyzor-1.0.0-py2.6.egg/pyzor/forwarder.pytstop_forwardingFs( t__name__t __module__t__doc__R RtFalseRR!R"(((sI/usr/lib/python2.6/site-packages/pyzor-1.0.0-py2.6.egg/pyzor/forwarder.pyR s   (R%RRRt ImportErrortqueuetobjectR(((sI/usr/lib/python2.6/site-packages/pyzor-1.0.0-py2.6.egg/pyzor/forwarder.pyts