#`HttpCon.prototype.close()` doesn't flush body before closing on macOS

4 messages ยท Page 1 of 1 (latest)

pine kraken
#

Hey ๐Ÿ™‹๐Ÿปโ€โ™€๏ธI'm new to the low-level http API in Deno and noticed something odd about HttpCon.prototype.close()

The following code produces different results on Debian (first) and Windows (second) vs. macOS (third).

My question: Is this a bug in Deno, or is my code unsafe and relying on a platform-specific race condition?

#

Debian (works)

deno --version
deno 1.15.3 (release, x86_64-unknown-linux-gnu)
v8 9.5.172.19
typescript 4.4.2

Windows (works)

deno --version
deno 1.19.0 (release, x86_64-pc-windows-msvc)
v8 9.9.115.7
typescript 4.5.2

macOS (๐Ÿ’ฅ)

deno --version
deno 1.28.1 (release, x86_64-apple-darwin)
v8 10.9.194.1
typescript 4.8.3
warm socket
pine kraken
#

Interesting. Thank you ๐Ÿ˜Š