Skip to main content
Server.prototype.timeout - http - Node documentation
property Server.prototype.timeout

Usage in Deno

import { Server } from "node:http";

The number of milliseconds of inactivity before a socket is presumed to have timed out.

A value of 0 will disable the timeout behavior on incoming connections.

The socket timeout logic is set up on connection, so changing this value only affects new connections to the server, not any existing connections.

Type

number