diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index e763797..c860f3b 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -4,7 +4,7 @@ jobs: test: runs-on: ubuntu-latest steps: - - uses: actions/checkout@v2 + - uses: actions/checkout@v4 - name: Install dependencies run: | sudo snap install zig --classic --edge @@ -18,10 +18,10 @@ jobs: - name: build server x86_64-linux-gnu run: cd support/autobahn/server && zig build -Dtarget=x86_64-linux-gnu - name: build server x86_64-windows-gnu - run: cd support/autobahn/server && zig build -Dtarget=build x86_64-windows-gnu + run: cd support/autobahn/server && zig build -Dtarget=x86_64-windows-gnu - name: build client x86-linux-gnu run: cd support/autobahn/client && zig build -Dtarget=x86-linux-gnu - name: build server x86_64-linux-gnu run: cd support/autobahn/client && zig build -Dtarget=x86_64-linux-gnu - name: build clietn x86_64-windows-gnu - run: cd support/autobahn/client && zig build -Dtarget=build x86_64-windows-gnu + run: cd support/autobahn/client && zig build -Dtarget=x86_64-windows-gnu diff --git a/src/server/server.zig b/src/server/server.zig index 4107911..75ae112 100644 --- a/src/server/server.zig +++ b/src/server/server.zig @@ -426,7 +426,9 @@ pub fn Blocking(comptime H: type) type { } // called for each hc when shutting down - fn shutdownCleanup(_: *Self, _: *HandlerConn(H)) void {} + fn shutdownCleanup(_: *Self, hc: *HandlerConn(H)) void { + posix.shutdown(hc.socket, .recv) catch {}; + } }; }