denoland / denoland/node_shims
EAGAIN when trying to read from a newly created TCP connection using `Deno.connect`
Open
- 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.