try: rewrite some parts with process pools

This commit is contained in:
cwilvx committed 2025-02-12 21:28:53 +03:00
1 parent beec5bc7d3
commit fa7c781610
9 files changed
+90 -43

No files matched your search

-1
View File
@@ -8,7 +8,6 @@ def has_connection(host="google.it", port=80, timeout=3):
OpenPort: 53/tcp
Service: domain (DNS/TCP)
"""
try:
Socket.setdefaulttimeout(timeout)
Socket.socket(Socket.AF_INET, Socket.SOCK_STREAM).connect((host, port))