node_shims icon indicating copy to clipboard operation
node_shims copied to clipboard

EAGAIN when trying to read from a newly created TCP connection using `Deno.connect`

Open rojvv opened this issue 1 year ago • 1 comments

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.

rojvv avatar Jun 02 '24 21:06 rojvv

+1

SpeedySH avatar Jun 03 '24 11:06 SpeedySH