1
0
Fork 0
mirror of https://github.com/denoland/deno.git synced 2024-11-28 16:20:57 -05:00
denoland-deno/ext/net
Ben Noordhuis 4d176b7b7c
fix(ext/net): make unix and tcp identical on close (#13075)
std/http/server knows how to handle "Listener has been closed"
exceptions but not "operation canceled" errors.

Make "unix" listen sockets throw the same exception as "tcp" listen
sockets when the socket is closed and has a pending accept operation.

There is still a discrepancy when multiple accept requests are posted
but that's probably a less visible issue and something for another day.

Fixes #13033
2021-12-14 23:27:04 +01:00
..
01_net.js feat(core): streams (#12596) 2021-11-09 19:26:17 +01:00
02_tls.js feat(ext/net): ALPN support in Deno.connectTls() (#12786) 2021-11-26 19:59:53 +01:00
04_net_unstable.js Rename extensions/ directory to ext/ (#11643) 2021-08-11 12:27:05 +02:00
Cargo.toml chore: merge v1.16.4 into main (#12984) 2021-12-04 01:26:54 +01:00
io.rs feat(core): streams (#12596) 2021-11-09 19:26:17 +01:00
lib.deno_net.d.ts chore: place @deprecated tag after documentation block (#13037) 2021-12-10 11:05:50 +11:00
lib.rs feat(core): streams (#12596) 2021-11-09 19:26:17 +01:00
ops.rs fix(ext/net): make unix and tcp identical on close (#13075) 2021-12-14 23:27:04 +01:00
ops_tls.rs chore: upgrade to rustls 0.20 (#12488) 2021-12-07 00:48:11 +01:00
ops_unix.rs fix(ext/net): make unix and tcp identical on close (#13075) 2021-12-14 23:27:04 +01:00
README.md feat(core): streams (#12596) 2021-11-09 19:26:17 +01: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_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"