Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
rojvv opened this issue Jun 2, 2024 · 1 comment

Comments

@rojvv
Copy link
Contributor

rojvv commented Jun 2, 2024

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.

@SpeedySH
Copy link

SpeedySH commented Jun 3, 2024

+1

rojvv added a commit to rojvv/node_shims that referenced this issue Jun 6, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants