Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Set read timeout to the default value from AbstractWagon #53

Merged
merged 3 commits into from
Aug 12, 2021

Conversation

yihanzhen
Copy link
Member

@yihanzhen yihanzhen commented Aug 12, 2021

Create a custom ArtifactRegistryRequestInitializer that implements HttpRequestInitializer, it does two things:

  • attach credentials to outbound requests
  • set read timeout to outbound requests

The read timeout is set to AbstractWagon.getReadTimeout(), which has a default value of 30 minutes if not overriden by user settings.

Locally tested with uploading a big artifact and it worked.

Fix #42

@yihanzhen
Copy link
Member Author

/gcbrun

@yihanzhen
Copy link
Member Author

/gcbrun

@yihanzhen yihanzhen merged commit f80de21 into GoogleCloudPlatform:master Aug 12, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Read timed out when uploading large (~40M) artifacts to GCP
2 participants