Closed annieherram closed 1 year ago
I'm also starting to see connection errors when trying to syncall. The docker image fails and exits at different percentage completions. Is Microsoft now throttling the sync more?
urllib3.exceptions.ProtocolError: ('Connection aborted.', RemoteDisconnected('Remote end closed connection without response'))
This could be due to how sessions are used. A session from requests is stored and used throughout the run. I changed the logic to use request.get()
or requests.post()
directly and seem to have gotten rid of this issue. I'm just not sure this is the right thing to do. Does it create a new session every time? And if so will it cause Microsoft to throttle connections when we try to sync extensions?
Sorry, I misread the original issue. However, @annieherram this issue should have been fixed by the latest version (1.0.20). Could you try deleting your local docker image and then pull the latest image and see if it's fixed?
docker images
# copy down the IMAGE ID of lolinternet/vsync:latest
docker rmi <IMAGE_ID_FROM_ABOVE>
# now run again to pull in the latest
docker-compose run vscsync
Removing the session while making requests to the same host can lead to a low performance, did you check that? The easiest way is probably look at the time for N requests and compare the results.
https://www.geeksforgeeks.org/session-objects-python-requests/
also, maybe a basic retry mechanism could help (and then make a fallback to a new request without the session?).
In the end, its all about performance and stability.
Hey, I'm running the default docker-compose vscsync service (using
SYNCARGS=--syncall --skip-binaries
) and there's a failure while fetching the cpp tools extension that crashes the whole fetch.Update me if you need any more info about this. Thank you!