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

[NativeAOT-LLVM] support System.Net.Http.HttpClient on WASIp2 #2614

Closed
wants to merge 20 commits into from
Closed
Changes from 1 commit
Commits
Show all changes
20 commits
Select commit Hold shift + click to select a range
beabe5a
support `System.Net.Http.HttpClient` on WASIp2
dicej Jun 12, 2024
28d758f
make `HttpClient.Timeout` actually work on WASI
dicej Aug 26, 2024
e32a223
fix file count confusion in SharedLibraryDriver.mjs
dicej Aug 26, 2024
e79642e
fix Linux tests
dicej Aug 27, 2024
2f3ce60
use `TaskCompletionSource.SetCanceled` instead of `SetException`
dicej Aug 27, 2024
18f9f6c
use `Stopwatch` in `HttpClient` test to verify timeout works as expected
dicej Aug 28, 2024
ebdbabf
provide more informative exception messages in `WasiHttpHandler`
dicej Aug 28, 2024
9d9ed59
remove obsolete TODO-LLVM comments
dicej Aug 28, 2024
4879365
update wit-bindgen and regenerate bindings
dicej Aug 29, 2024
137614e
to match https://github.com/dotnet/runtime/pull/107096
pavelsavara Aug 28, 2024
b25bc9e
fix disposal of pollable
pavelsavara Aug 29, 2024
5f35285
update wit-bindgen and regenerate bindings (again)
dicej Aug 29, 2024
ddbd68a
specify zero expected exit code for WASIp2 smoke test
dicej Aug 29, 2024
e989a63
convert response headers after setting content
dicej Aug 29, 2024
98bf4dc
exit `DispatchWasiEventLoop` without polling if tasks have been canceled
dicej Aug 29, 2024
757eeb9
assert HTTP test in `SharedLibrary` completes promptly
dicej Aug 29, 2024
dfdd8bc
support reading trailers in `WasiInputStream`
dicej Sep 3, 2024
1736bdd
increase max elapsed time in SharedLibrary test
dicej Sep 3, 2024
dd5f8ae
work around possible `wasmtime-wasi-http` bug regarding trailing headers
dicej Sep 5, 2024
68ec226
remove temporary http-p2 smoke test
dicej Sep 13, 2024
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
use TaskCompletionSource.SetCanceled instead of SetException
Signed-off-by: Joel Dice <joel.dice@fermyon.com>
  • Loading branch information
dicej committed Aug 27, 2024
commit 2f3ce607880dfa04d6c1bfde04d23279f911b6af
Original file line number Diff line number Diff line change
@@ -50,7 +50,7 @@ internal static void DispatchWasiEventLoop()
tcs.Task.AsyncState!;
if (cancellationToken.IsCancellationRequested)
{
tcs.SetException(new TaskCanceledException());
tcs.SetCanceled(cancellationToken);
tasksCanceled = true;
}
else