summaryrefslogtreecommitdiff
path: root/cli/dts/lib.deno.unstable.d.ts
diff options
context:
space:
mode:
authorLuca Casonato <hello@lcas.dev>2022-10-26 21:04:27 +0200
committerGitHub <noreply@github.com>2022-10-26 19:04:27 +0000
commitf4f1f4f0b64030b744cfb43693af321ea8332bf4 (patch)
tree9d4e1fcf9ea9b92ef5a863fcd449edf8c0c9a834 /cli/dts/lib.deno.unstable.d.ts
parentde580cedd24be22dc267d5b92538364ed9998a46 (diff)
feat(ext/net): reusePort for TCP on Linux (#16398)
Diffstat (limited to 'cli/dts/lib.deno.unstable.d.ts')
-rw-r--r--cli/dts/lib.deno.unstable.d.ts16
1 files changed, 16 insertions, 0 deletions
diff --git a/cli/dts/lib.deno.unstable.d.ts b/cli/dts/lib.deno.unstable.d.ts
index cde76d4d8..2bcba88da 100644
--- a/cli/dts/lib.deno.unstable.d.ts
+++ b/cli/dts/lib.deno.unstable.d.ts
@@ -1158,6 +1158,22 @@ declare namespace Deno {
[Symbol.asyncIterator](): AsyncIterableIterator<[Uint8Array, Addr]>;
}
+ /**
+ * @category Network
+ */
+ export interface TcpListenOptions extends ListenOptions {
+ /** When `true` the SO_REUSEPORT flag will be set on the listener. This
+ * allows multiple processes to listen on the same address and port.
+ *
+ * On Linux this will cause the kernel to distribute incoming connections
+ * across the different processes that are listening on the same address and
+ * port.
+ *
+ * This flag is only supported on Linux. It is silently ignored on other
+ * platforms. Defaults to `false`. */
+ reusePort?: boolean;
+ }
+
/** **UNSTABLE**: New API, yet to be vetted.
*
* Unstable options which can be set when opening a Unix listener via