0
0
Fork 0
mirror of https://github.com/denoland/deno.git synced 2024-10-30 09:08:00 -04:00
denoland-deno/cli/tests
Aaron O'Mullan 3c88dffd32
fix(http): panic when responding to a closed conn (#12216)
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
2021-09-25 13:22:19 +02:00
..
integration chore(workers): Test that closing a worker closes any child workers (#12215) 2021-09-24 19:26:57 -07:00
testdata chore(workers): Test that closing a worker closes any child workers (#12215) 2021-09-24 19:26:57 -07:00
unit fix(http): panic when responding to a closed conn (#12216) 2021-09-25 13:22:19 +02:00
integration_tests.rs chore: split up integration_tests.rs into separate files (#11131) 2021-06-27 13:27:36 -04:00