Skip to content
Snippets Groups Projects
Commit 9b76786b authored by NGUYEN Do Duc Anh's avatar NGUYEN Do Duc Anh
Browse files

remove timeout

parent 028cac81
No related branches found
No related tags found
No related merge requests found
......@@ -82,7 +82,6 @@ def notify_window_attacker():
point_ips = map_point.keys()
for point_ip_send in point_ips:
client_socket = socket.socket(socket.AF_INET, socket.SOCK_STREAM)
client_socket.settimeout(2.0)
try:
client_socket.connect((point_ip_send, 12345))
client_socket.close()
......@@ -103,7 +102,6 @@ def notify_ubuntu_internode():
message = json.dumps({'handled_ips': array_to_send, 'p_NAT': p_NAT}).encode('utf-8')
udp_socket = socket.socket(socket.AF_INET, socket.SOCK_DGRAM)
udp_socket.settimeout(1)
try:
print(f"Sending to {point_ip_send}...")
time_retry = 3
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment