top | item 44994361

(no title)

latch | 6 months ago

Author here.

I finally got it working. I had to flush both the encrypted writer and then the stream writer. There was also some issues with reading. Streaming works, but it'll always return 0 on the first read because Writer.Fixed doesn't implement sendFile, and thus after the first call, it internally switches from streaming mode to reading mode (1) and then things magically work.

Currently trying to get compression re-enabled in my websocket library.

(1) https://github.com/ziglang/zig/blob/47a2f2ddae9cc47ff6df7a71...

discuss

order

tempodox|6 months ago

Whatever happened to the principle of least surprise?

DrewADesign|6 months ago

Unsurprisingly, it’s occasionally disregarded—seemingly when you least expect it.

j-krieger|6 months ago

Going from the previous interface to what ever this is, is certainly something. Yeesh.