node_shims
node_shims copied to clipboard
EAGAIN when trying to read from a newly created TCP connection using `Deno.connect`
Reproduction
import { Deno } from "@deno/node-shims";
const r = await Deno.connect({ port: 80, hostname: "google.com" });
await r.read(new Uint8Array(100));
Current Behavior
Throws EAGAIN.
Expected Behavior
Should block until data is available, but not necessarily the amount of the data requested to be read.
+1