This repository was archived by the owner on Dec 18, 2018. It is now read-only.
This repository was archived by the owner on Dec 18, 2018. It is now read-only.
ECANCELED operation canceled, received after request completed #1254
Closed
Description
I was trying to test the cancellation token functionality.
public async Task<string> Get(CancellationToken ct = default(CancellationToken))
{
await Task.Delay(5000);
return "ok";
}
Scenario:
- Send HTTP GET request
- Abort
- Inspect CancellationToken at "return ok" break point
Result:
- IsCancellationRequested = false
- CanBeCanceled = true
Console lists the abort event last, after the HTTP request has finished.
Tried to run the same scenario using WebListener and the IsCancellationRequested was true, as expected.
Metadata
Metadata
Assignees
Labels
No labels