- 110BBA88AE7779DC404B10C2B80F93C6BBBCDF72F05511702CC4AFACC22640BDC3C0326FD8D7AAAFA92F22E35C39AA808A7BA0CFD892259AA292946FBAEC8F17
+ 2003B827BA1E77B0E67A9A00BDF37ED146DDAF00BB0EC9EB72AF3AEFCED8541F948FA2B8A7770975165F96029E489A6E609E188700F5655C697E05271419D9EF
blatta/lib/server.py
(1 . 4)(1 . 4)
64 VERSION = "9984"
65 VERSION = "9983"
66
67 import os
68 import select
(14 . 8)(14 . 6)
70 from client import Client
71 from channel import Channel
72 from station import Station
73 from station import EMBARGO_INTERVAL
74 from station import RUBBISH_INTERVAL
75 from message import Message
76 from infosec import PACKET_SIZE
77 import imp
(201 . 12)(199 . 12)
79 last_aliveness_check = now
80
81 # clear embargo queue if enough time has elapsed
82 if last_embargo_queue_check + EMBARGO_INTERVAL < now:
83 if last_embargo_queue_check + int(self.station.state.get_knob('embargo_interval')) < now:
84 self.station.check_embargo_queue()
85 last_embargo_queue_check = now
86
87 # spray rubbish
88 if last_rubbish_dispatch + RUBBISH_INTERVAL < now:
89 if last_rubbish_dispatch + int(self.station.state.get_knob('rubbish_interval')) < now:
90 self.station.send_rubbish()
91 last_rubbish_dispatch = now
92