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

Adds overloads to GetArchive for adding custom timeouts #918

Merged
merged 3 commits into from
Nov 4, 2015
Merged

Adds overloads to GetArchive for adding custom timeouts #918

merged 3 commits into from
Nov 4, 2015

Conversation

heytherewill
Copy link
Contributor

This (hopefully) fixes #817

@heytherewill heytherewill changed the title Adds overloads for adding custom timeouts [WIP] Adds overloads to GetArchive for adding custom timeouts Sep 30, 2015
/// <param name="reference">A valid Git reference.</param>
/// <param name="timeout"> Timeout in minutes </param>
/// <returns>The binary contents of the archive</returns>
IObservable<byte[]> GetArchive(string owner, string name, ArchiveFormat archiveFormat, string reference, int timeout);
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Honestly, I'd rather not have this method and only have the TimeSpan I think it promotes better practices. Also, if we really want this overload, we can add it as an extension method to the interface.

Plus extra ensures
@heytherewill
Copy link
Contributor Author

hmm, it seems like the build failed due to #904

@heytherewill heytherewill changed the title [WIP] Adds overloads to GetArchive for adding custom timeouts Adds overloads to GetArchive for adding custom timeouts Oct 7, 2015
@shiftkey
Copy link
Member

shiftkey commented Nov 4, 2015

Apologies for the delay, and thanks for working on this!

shiftkey added a commit that referenced this pull request Nov 4, 2015
Adds overloads to GetArchive for adding custom timeouts
@shiftkey shiftkey merged commit 59aa436 into octokit:master Nov 4, 2015
@heytherewill heytherewill deleted the download-timeout branch November 4, 2015 17:44
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.

control request timeout when downloading archive
3 participants