denoland / denoland/node_shims

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

Open
#185 1 comment 0 reactions 0 assignees View on GitHub
Dominant language
TypeScript
Stars
160
Forks
27
PR merge metrics
No merged PRs in 30d

Description

## Reproduction

```ts
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.

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.