1
0
Fork 0
mirror of https://github.com/denoland/deno.git synced 2024-11-24 15:19:26 -05:00
denoland-deno/ext/net
Bert Belder ff932b411d
fix(core): poll async ops eagerly (#12385)
Currently all async ops are polled lazily, which means that op
initialization code is postponed until control is yielded to the event
loop. This has some weird consequences, e.g.

```js
let listener = Deno.listen(...);
let conn_promise = listener.accept();
listener.close();
// `BadResource` is thrown. A reasonable error would be `Interrupted`.
let conn = await conn_promise;
```

JavaScript promises are expected to be eagerly evaluated. This patch
makes ops actually do that.
2021-10-17 19:50:42 +02:00
..
01_net.js fix(core): poll async ops eagerly (#12385) 2021-10-17 19:50:42 +02:00
02_tls.js feat(tls): custom in memory CA certificates (#12219) 2021-09-30 09:26:15 +02:00
04_net_unstable.js Rename extensions/ directory to ext/ (#11643) 2021-08-11 12:27:05 +02:00
Cargo.toml chore: bump crate version for 1.15.0 (#12406) 2021-10-12 22:16:15 +05:30
io.rs chore: various op cleanup (#12329) 2021-10-05 22:38:27 +02:00
lib.deno_net.d.ts feat(tls): custom in memory CA certificates (#12219) 2021-09-30 09:26:15 +02:00
lib.rs chore: remove No*Permissions structs (#12316) 2021-10-04 22:56:24 +02:00
ops.rs feat: stabilize Deno.resolveDns (#12368) 2021-10-10 15:46:11 +05:30
ops_tls.rs feat(tls): custom in memory CA certificates (#12219) 2021-09-30 09:26:15 +02:00
ops_unix.rs chore: various op cleanup (#12329) 2021-10-05 22:38:27 +02:00
README.md Rename extensions/ directory to ext/ (#11643) 2021-08-11 12:27:05 +02:00
resolve_addr.rs Rename extensions/ directory to ext/ (#11643) 2021-08-11 12:27:05 +02:00

deno_net

This crate implements networking APIs.

This crate depends on following extensions:

  • "deno_web"
  • "deno_fetch"

Following ops are provided:

  • "op_net_read_async"
  • "op_net_write_async"
  • "op_net_shutdown"
  • "op_accept"
  • "op_connect"
  • "op_listen"
  • "op_datagram_receive"
  • "op_datagram_send"
  • "op_dns_resolve"
  • "op_start_tls"
  • "op_connect_tls"
  • "op_listen_tls"
  • "op_accept_tls"
  • "op_http_start"
  • "op_http_request_next"
  • "op_http_request_read"
  • "op_http_response"
  • "op_http_response_write"
  • "op_http_response_close"