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

allow long polling request to be interrupted #45

Merged
merged 1 commit into from
Oct 26, 2021
Merged

Conversation

tanmaykm
Copy link
Member

Allow long polling request to be interrupted by closing the output channel.
There is no ready API/mechanism in Downloads.jl to interrupt a request.
Here we just throw an InterruptedException to the task that invoked Downloads.request.

Note: A better mechanism may be to invoke remove_handle(multi::Multi, easy::Easy), but that should probably be through an interruption mechanism provided by Downloads.jl?

Allow long polling request to be interrupted by closing the output channel.
There is no ready API/mechanism in Downloads.jl to interrupt a request.
Here we just throw an InterruptedException to the task that invoked Downloads.request.

Note: A better mechanism may be to invoke `remove_handle(multi::Multi, easy::Easy)`, but that should probably be through an interruption mechanism provided by Downloads.jl?
@tanmaykm tanmaykm merged commit c07571d into master Oct 26, 2021
@delete-merged-branch delete-merged-branch bot deleted the tan/interrupt branch October 26, 2021 09:26
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.

1 participant