Skip to content

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

@rojvv

Description

@rojvv

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions