ultralytics 8.2.17 2.0s is_online() wait time (#12782)
This commit is contained in:
parent
10b3564a1b
commit
a2ecb24176
2 changed files with 2 additions and 2 deletions
|
|
@ -1,6 +1,6 @@
|
|||
# Ultralytics YOLO 🚀, AGPL-3.0 license
|
||||
|
||||
__version__ = "8.2.16"
|
||||
__version__ = "8.2.17"
|
||||
|
||||
from ultralytics.data.explorer.explorer import Explorer
|
||||
from ultralytics.models import RTDETR, SAM, YOLO, YOLOWorld
|
||||
|
|
|
|||
|
|
@ -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
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue