#Closing a std.net.Server.Connection
1 messages · Page 1 of 1 (latest)
I tried looking through the source for std.http.Server but it's a bit arcane.
I thought maybe I need to flush bytes but that is crashing the program.
I'm stll perplexed by this. I've been trying to make it work with the new IO stream interface but it's confusing and never seems to write any data. If I try calling flush anywhere, it crashes.
Managed to get it working first try with the deprecated stream.write() function though.
is it not just stream.close()?
fwiw nothing will ever automatically happen when something goes out of scope in zig
If I try calling flush anywhere, it crashes.
This usually means you're using the interface incorrectly