A websocket implementation for zig
0

Configure Feed

Select the types of activity you want to include in your feed.

Fix client regression: Calling client.close() on a TLS connection while the readLoop thread is running results in a crash

Tadej Gašparovič (Aug 31, 2025, 8:27 PM +0200) ef7ff820 59aaa71e

+2
+2
src/client/client.zig
··· 406 406 407 407 pub fn close(self: *Stream) void { 408 408 if (self.tls_client) |tls_client| { 409 + // Shutdown the socket first, so readLoop() can exit, before tls_client's buffers are freed 410 + std.posix.shutdown(self.stream.handle, .both) catch {}; 409 411 tls_client.deinit(); 410 412 } 411 413