1
0
Fork 0
mirror of https://github.com/denoland/deno.git synced 2024-12-31 11:34:15 -05:00
denoland-deno/ext
Gianluca Oldani 873a5ce2ed
feat(ext/net): add reuseAddress option for UDP (#13849)
This commit adds a `reuseAddress` option for UDP sockets. When this
option is enabled, one can listen on an address even though it is
already being listened on from a different process or thread. The new
socket will steal the address from the existing socket.

On Windows and Linux this uses the `SO_REUSEADDR` option, while on other
Unixes this is done with `SO_REUSEPORT`.

This behavior aligns with what libuv does.

TCP sockets still unconditionally set the `SO_REUSEADDR` flag - this
behavior matches Node.js and Go. This PR does not change this behaviour.

Co-authored-by: Luca Casonato <hello@lcas.dev>
2022-10-24 09:05:07 +00:00
..
broadcast_channel chore: forward v1.26.2 to main (#16331) 2022-10-17 23:11:16 +02:00
cache chore: forward v1.26.2 to main (#16331) 2022-10-17 23:11:16 +02:00
console chore: forward v1.26.2 to main (#16331) 2022-10-17 23:11:16 +02:00
crypto chore: forward v1.26.2 to main (#16331) 2022-10-17 23:11:16 +02:00
fetch chore: forward v1.26.2 to main (#16331) 2022-10-17 23:11:16 +02:00
ffi chore: upgrade rusty_v8 to 0.54.0 (#16368) 2022-10-20 21:01:49 +02:00
flash chore(core): remove core.opSync (#16379) 2022-10-21 19:35:23 +05:30
http chore: forward v1.26.2 to main (#16331) 2022-10-17 23:11:16 +02:00
napi chore: upgrade rusty_v8 to 0.54.0 (#16368) 2022-10-20 21:01:49 +02:00
net feat(ext/net): add reuseAddress option for UDP (#13849) 2022-10-24 09:05:07 +00:00
node feat(unstable/npm): initial type checking of npm specifiers (#16332) 2022-10-21 15:20:18 +00:00
tls chore: forward v1.26.2 to main (#16331) 2022-10-17 23:11:16 +02:00
url chore: forward v1.26.2 to main (#16331) 2022-10-17 23:11:16 +02:00
web perf(ext/web/encoding): avoid copy in decode (#16364) 2022-10-23 21:09:15 +02:00
webgpu chore: forward v1.26.2 to main (#16331) 2022-10-17 23:11:16 +02:00
webidl chore: forward v1.26.2 to main (#16331) 2022-10-17 23:11:16 +02:00
websocket perf(serde_v8): serde_v8::StringOrBuffer return JS ArrayBuffer instead of Uint8Array (#16360) 2022-10-20 16:03:57 +05:30
webstorage chore: forward v1.26.2 to main (#16331) 2022-10-17 23:11:16 +02:00