Commit 1db24fc
Improve internet connectivity check in penv_setup.py (#317)
* Improve internet connectivity check in penv_setup.py
Refactored the has_internet_connection() function to improve reliability in proxy and enterprise network environments.
- Added support for detecting HTTPS/HTTP proxy settings and testing TCP connectivity to the proxy endpoint.
- Replaced direct DNS (1.1.1.1:53) check with connectivity tests to common HTTPS hosts (pypi.org, files.pythonhosted.org, github.com).
This change prevents false negatives in network detection and ensures Python dependencies are properly installed during platform initialization.
* Add support for lowercase proxy environment variables
---------
Co-authored-by: Jason2866 <[email protected]>1 parent 64bfa59 commit 1db24fc
1 file changed
+36
-7
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
21 | 21 | | |
22 | 22 | | |
23 | 23 | | |
| 24 | + | |
24 | 25 | | |
25 | 26 | | |
26 | 27 | | |
| |||
60 | 61 | | |
61 | 62 | | |
62 | 63 | | |
63 | | - | |
| 64 | + | |
64 | 65 | | |
65 | | - | |
66 | | - | |
| 66 | + | |
| 67 | + | |
| 68 | + | |
| 69 | + | |
| 70 | + | |
| 71 | + | |
| 72 | + | |
| 73 | + | |
| 74 | + | |
67 | 75 | | |
68 | | - | |
69 | | - | |
| 76 | + | |
| 77 | + | |
| 78 | + | |
| 79 | + | |
| 80 | + | |
| 81 | + | |
| 82 | + | |
| 83 | + | |
| 84 | + | |
| 85 | + | |
| 86 | + | |
| 87 | + | |
| 88 | + | |
| 89 | + | |
| 90 | + | |
| 91 | + | |
| 92 | + | |
| 93 | + | |
| 94 | + | |
70 | 95 | | |
71 | | - | |
72 | | - | |
| 96 | + | |
| 97 | + | |
| 98 | + | |
| 99 | + | |
| 100 | + | |
| 101 | + | |
73 | 102 | | |
74 | 103 | | |
75 | 104 | | |
| |||
0 commit comments