ultralytics 8.2.17 2.0s is_online() wait time (#12782)

This commit is contained in:
Glenn Jocher 2024-05-17 19:23:22 +02:00 committed by GitHub
parent 10b3564a1b
commit a2ecb24176
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
2 changed files with 2 additions and 2 deletions

View file

@ -515,7 +515,7 @@ def is_online() -> bool:
import socket
for dns in ("1.1.1.1", "8.8.8.8"): # check Cloudflare and Google DNS
socket.create_connection(address=(dns, 80), timeout=1.0).close()
socket.create_connection(address=(dns, 80), timeout=2.0).close()
return True
return False