Fix an issue with slow updating of PlatformIO Core packages on Windows

This commit is contained in:
Ivan Kravets
2019-02-19 20:12:07 +02:00
parent 234bb75b9b
commit 6059e0dce6
2 changed files with 4 additions and 2 deletions

View File

@ -9,6 +9,7 @@ PlatformIO 4.0
* Added Python 3.5+ support * Added Python 3.5+ support
(`issue #895 <https://github.com/platformio/platformio-core/issues/895>`_) (`issue #895 <https://github.com/platformio/platformio-core/issues/895>`_)
* Fixed an issue with slow updating of PlatformIO Core packages on Windows
PlatformIO 3.0 PlatformIO 3.0
-------------- --------------

View File

@ -106,9 +106,10 @@ def update_core_packages(only_check=False, silent=False):
def shutdown_piohome_servers(): def shutdown_piohome_servers():
port = 8010 port = 8010
while port < 8100: while port < 8050:
try: try:
requests.get("http://127.0.0.1:%d?__shutdown__=1" % port) requests.get(
"http://127.0.0.1:%d?__shutdown__=1" % port, timeout=0.01)
except: # pylint: disable=bare-except except: # pylint: disable=bare-except
pass pass
port += 1 port += 1