mirror of
https://github.com/ail-project/ail-framework.git
synced 2024-11-27 00:07:16 +00:00
commit
910e0be9be
1 changed files with 2 additions and 7 deletions
|
@ -26,11 +26,6 @@ if __name__ == "__main__":
|
||||||
|
|
||||||
h = Helper.Redis_Queues(config_section, config_channel, subscriber_name)
|
h = Helper.Redis_Queues(config_section, config_channel, subscriber_name)
|
||||||
|
|
||||||
# Publisher
|
|
||||||
pub_config_section = "PubSub_Url"
|
|
||||||
pub_config_channel = 'channel'
|
|
||||||
h.zmq_pub(pub_config_section, pub_config_channel)
|
|
||||||
|
|
||||||
# Subscriber
|
# Subscriber
|
||||||
h.zmq_sub(config_section)
|
h.zmq_sub(config_section)
|
||||||
|
|
||||||
|
@ -65,7 +60,7 @@ if __name__ == "__main__":
|
||||||
port, resource_path, query_string, f1, f2, f3, \
|
port, resource_path, query_string, f1, f2, f3, \
|
||||||
f4 = x
|
f4 = x
|
||||||
domains_list.append(domain)
|
domains_list.append(domain)
|
||||||
h.zmq_pub_send(str(x))
|
print (str(x))
|
||||||
publisher.debug('{} Published'.format(x))
|
publisher.debug('{} Published'.format(x))
|
||||||
|
|
||||||
if f1 == "onion":
|
if f1 == "onion":
|
||||||
|
@ -122,4 +117,4 @@ if __name__ == "__main__":
|
||||||
|
|
||||||
message = h.redis_rpop()
|
message = h.redis_rpop()
|
||||||
except dns.exception.Timeout:
|
except dns.exception.Timeout:
|
||||||
print "dns.exception.Timeout", A_values
|
print "dns.exception.Timeout ", hostl
|
||||||
|
|
Loading…
Reference in a new issue