expose underlying io error in wisp close reason error, refactor tls config creation

This commit is contained in:
Toshit Chawda 2024-11-03 12:47:45 -08:00
parent f3a78a1715
commit 286dcba20a
No known key found for this signature in database
GPG key ID: 91480ED99E2B3D9D
4 changed files with 21 additions and 27 deletions

View file

@ -24,9 +24,9 @@ wasm-bindgen --target web --out-dir out/ ../target/wasm32-unknown-unknown/releas
echo "[epx] wasm-bindgen finished"
if ! [ "${RELEASE:-0}" = "1" ]; then
WASMOPTFLAGS="-g"
: "${WASMOPTFLAGS:=-g}"
else
WASMOPTFLAGS=""
: "${WASMOPTFLAGS:=}"
fi
mv out/epoxy_client_bg.wasm out/epoxy_client_unoptimized.wasm
@ -35,6 +35,7 @@ wasm-opt $WASMOPTFLAGS --signext-lowering out/epoxy_client_unoptimized.wasm -o o
if [ "${RELEASE:-0}" = "1" ]; then
(
G="--generate-global-effects"
# shellcheck disable=SC2086
time wasm-opt $WASMOPTFLAGS \
out/epoxy_client_lowered.wasm -o out/epoxy_client_bg.wasm \
--converge \