algebra.acceptQueueLimit
This function gives the limit of the accept queue: the backlog of listen(2), clamped to `somaxconn`.
CLI- Package
- @procedures/algebra · README
- Path
["algebra","acceptQueueLimit"]- CLI
mark algebra acceptQueueLimit --backlog <number> --somaxconn <number>- As data
{"$proc":["algebra","acceptQueueLimit"],"input":{}}
Use it
In TypeScript
import { Client, LocalTransport, PROCEDURE_REGISTRY } from "@procedures/client";
import "@procedures/algebra/register"; // registers its procedures
const client = new Client(new LocalTransport({ registry: PROCEDURE_REGISTRY }));
const result = await client.exec(["algebra","acceptQueueLimit"], { backlog: 1, somaxconn: 1 });
console.log(JSON.stringify(result));From the command line
$ mark algebra acceptQueueLimit --backlog <number> --somaxconn <number>
As data, in a program
{
"$proc": ["algebra", "acceptQueueLimit"],
"input": { "backlog": 1, "somaxconn": 1 }
}Input
| Field | Type | Required | Default | Description |
|---|---|---|---|---|
backlog | number | yes | ||
somaxconn | number | yes |
Output
The schema does not list fields (number).
JSON Schemas
{
"input": {
"type": "object",
"properties": {
"backlog": {
"type": "number"
},
"somaxconn": {
"type": "number"
}
},
"required": [
"backlog",
"somaxconn"
],
"additionalProperties": false
},
"output": {
"type": "number"
}
}