mirror of
https://github.com/denoland/deno.git
synced 2024-12-21 23:04:45 -05:00
3c88dffd32
Our oneshot receiver in `HyperService::call` would unwrap and panic, the `.await` on the oneshot receiver happens when the sender is dropped. The sender is dropped in `op_http_response` because: 1. We take `ResponseSenderResource` 2. Then get `ConnResource` and early exit on failure (conn already closed) 3. The taken sender then gets dropped in this early exit before any response is sent over the channel Fallbacking to returning a dummy response to hyper seems to be a fine quickfix |
||
---|---|---|
.. | ||
01_http.js | ||
Cargo.toml | ||
lib.rs | ||
README.md |