Skip to content

Commit

Permalink
http: max requests per socket docs
Browse files Browse the repository at this point in the history
  • Loading branch information
fatal10110 committed Sep 16, 2021
1 parent 729fd5a commit 063a83c
Showing 1 changed file with 16 additions and 0 deletions.
16 changes: 16 additions & 0 deletions doc/api/http.md
Original file line number Diff line number Diff line change
Expand Up @@ -1352,6 +1352,22 @@ By default, the Server does not timeout sockets. However, if a callback
is assigned to the Server's `'timeout'` event, timeouts must be handled
explicitly.

### `server.maxRequestsPerSocket`
<!-- YAML
added: REPLACEME
-->

* {number} Requests per socket. **Default:** null (no limit)

The maximum number of requests socket can handle
before closing keep alive connection.

A value of `null` will disable the limit.

When limit is reach it will set `Connection` header value to `closed`,
but will not actually close the connection, subsequent requests sent
after the limit is reached will get `503 Service Unavailable` as a response.

### `server.timeout`
<!-- YAML
added: v0.9.12
Expand Down

0 comments on commit 063a83c

Please sign in to comment.