Skip to content
This repository has been archived by the owner on Jan 12, 2024. It is now read-only.

Update WebRequest to HttpClient #577

Open
cgranade opened this issue Jan 27, 2022 · 0 comments
Open

Update WebRequest to HttpClient #577

cgranade opened this issue Jan 27, 2022 · 0 comments
Labels
Area-Azure Issue relates to Azure Quantum integration. Area-Kernel Issue relates to the IQ# kernel. Kind-Bug Something isn't working Kind-Enhancement New feature or request

Comments

@cgranade
Copy link
Contributor

Describe the bug
Some portions of the IQ# kernel use System.Net.WebRequest to make HTTP requests to the Azure Quantum service, but this API has been deprecated and does not properly support cooperative cancellation via CancellationToken values. As a result, a timeout failure internal to WebRequest may not be interruptible, resulting in a hung kernel instance that does not respond to Jupyter interrupt requests.

These APIs should be updated to use the newer HttpClient API and to propagate cancellation tokens through HTTP requests made via this API.

@cgranade cgranade added Area-Azure Issue relates to Azure Quantum integration. Area-Kernel Issue relates to the IQ# kernel. Kind-Bug Something isn't working Kind-Enhancement New feature or request labels Jan 27, 2022
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Area-Azure Issue relates to Azure Quantum integration. Area-Kernel Issue relates to the IQ# kernel. Kind-Bug Something isn't working Kind-Enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant