Skip to content
This repository has been archived by the owner on Mar 8, 2023. It is now read-only.

Keep vSphere connection alive #32

Merged
merged 1 commit into from Aug 16, 2017
Merged

Keep vSphere connection alive #32

merged 1 commit into from Aug 16, 2017

Conversation

mkuzmin
Copy link
Contributor

@mkuzmin mkuzmin commented Aug 15, 2017

Fixes #30.

vSphere connection is timed out after 30 minutes of inactivity.
Large provisioning scripts can take longer, for next operation vCenter returns NotAuthenticated, and the whole build fails.

session.KeepAlive() adds a background task, which refreshed the connection every 10 minutes.

@Kutkovsky
Copy link

Tested. It helps.

@mkuzmin mkuzmin merged commit 1ca3571 into master Aug 16, 2017
@mkuzmin mkuzmin deleted the keep-alive branch August 16, 2017 17:24
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants