1
0
Fork 0
mirror of https://github.com/denoland/deno.git synced 2024-12-21 23:04:45 -05:00
denoland-deno/ext/net
Luca Casonato 38213f1142
fix(ext/net): don't remove sockets on unix listen (#16394)
When listening on a UNIX socket path, Deno currently tries to unlink
this path prior to actually listening. The implementation of this
behaviour is VERY racy, involves 2 additional syscalls, and does not
match the behaviour of any other runtime (Node.js, Go, Rust, etc).

This commit removes this behaviour. If a user wants to listen on an
existing socket, they must now unlink the file themselves prior to
listening.

This change in behaviour only impacts --unstable APIs, so it is not
a breaking change.
2022-10-24 00:45:45 +02:00
..
01_net.js feat(core): add Deno.core.writeAll(rid, chunk) (#16228) 2022-10-10 10:28:35 +02:00
02_tls.js perf(ops): Monomorphic sync op calls (#15337) 2022-08-11 15:56:56 +02:00
04_net_unstable.js feat(unstable): add ref/unref to Listener (#13961) 2022-03-23 12:04:20 +09:00
Cargo.toml chore: forward v1.26.2 to main (#16331) 2022-10-17 23:11:16 +02:00
io.rs chore: fix windows-only clippy errors (#16289) 2022-10-15 13:56:54 +00:00
lib.deno_net.d.ts fix(ext/net): return an error from startTls and serveHttp if the original connection is captured elsewhere (#16242) 2022-10-18 11:28:27 +09:00
lib.rs feat: Add requesting API name to permission prompt (#15936) 2022-09-27 22:36:33 +02:00
ops.rs feat: Add requesting API name to permission prompt (#15936) 2022-09-27 22:36:33 +02:00
ops_tls.rs fix(ext/net): return an error from startTls and serveHttp if the original connection is captured elsewhere (#16242) 2022-10-18 11:28:27 +09:00
ops_unix.rs fix(ext/net): don't remove sockets on unix listen (#16394) 2022-10-24 00:45:45 +02:00
README.md feat(core): streams (#12596) 2021-11-09 19:26:17 +01:00
resolve_addr.rs chore: update copyright to 2022 (#13306) 2022-01-07 22:09:52 -05:00

deno_net

This crate implements networking APIs.

This crate depends on following extensions:

  • "deno_web"
  • "deno_fetch"

Following ops are provided:

  • "op_net_accept"
  • "op_net_connect"
  • "op_net_listen"
  • "op_dgram_recv"
  • "op_dgram_send"
  • "op_dns_resolve"
  • "op_tls_start"
  • "op_tls_connect"
  • "op_tls_listen"
  • "op_tls_accept"
  • "op_tls_handshake"