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

fix timeout

parent 193eb451
No related branches found
No related tags found
No related merge requests found
......@@ -84,14 +84,15 @@ def notify_window_attacker():
global map_point
point_ips = map_point.keys()
for point_ip_send in point_ips:
client_socket = socket.socket(socket.AF_INET, socket.SOCK_STREAM)
c_socket = socket.socket(socket.AF_INET, socket.SOCK_STREAM)
c_socket.settimeout(0)
try:
client_socket.connect((point_ip_send, 12345))
client_socket.close()
c_socket.connect((point_ip_send, 12345))
c_socket.close()
except Exception:
pass
finally:
client_socket.close()
c_socket.close()
print("Finished sending attack demands")
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment