@platformatic/service 3.24.0-alpha0 → 3.25.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/config.d.ts +4 -0
- package/lib/capability.js +4 -0
- package/package.json +7 -7
- package/schema.json +6 -2
package/config.d.ts
CHANGED
|
@@ -381,6 +381,10 @@ export interface PlatformaticServiceConfig {
|
|
|
381
381
|
server?: {
|
|
382
382
|
hostname?: string;
|
|
383
383
|
port?: number | string;
|
|
384
|
+
/**
|
|
385
|
+
* The maximum length of the queue of pending connections
|
|
386
|
+
*/
|
|
387
|
+
backlog?: number;
|
|
384
388
|
http2?: boolean;
|
|
385
389
|
https?: {
|
|
386
390
|
allowHTTP1?: boolean;
|
package/lib/capability.js
CHANGED
|
@@ -266,6 +266,10 @@ export class ServiceCapability extends BaseCapability {
|
|
|
266
266
|
const serverOptions = this.serverConfig
|
|
267
267
|
const listenOptions = { host: serverOptions?.hostname || '127.0.0.1', port: serverOptions?.port || 0 }
|
|
268
268
|
|
|
269
|
+
if (typeof serverOptions?.backlog === 'number') {
|
|
270
|
+
listenOptions.backlog = serverOptions.backlog
|
|
271
|
+
}
|
|
272
|
+
|
|
269
273
|
await this.#app.listen(listenOptions)
|
|
270
274
|
this.url = getServerUrl(this.#app.server)
|
|
271
275
|
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@platformatic/service",
|
|
3
|
-
"version": "3.
|
|
3
|
+
"version": "3.25.0",
|
|
4
4
|
"description": "",
|
|
5
5
|
"main": "index.js",
|
|
6
6
|
"types": "index.d.ts",
|
|
@@ -67,12 +67,12 @@
|
|
|
67
67
|
"rfdc": "^1.3.1",
|
|
68
68
|
"semgrator": "^0.3.0",
|
|
69
69
|
"undici": "^7.0.0",
|
|
70
|
-
"@platformatic/
|
|
71
|
-
"@platformatic/
|
|
72
|
-
"@platformatic/
|
|
73
|
-
"@platformatic/
|
|
74
|
-
"@platformatic/
|
|
75
|
-
"@platformatic/telemetry": "3.
|
|
70
|
+
"@platformatic/basic": "3.25.0",
|
|
71
|
+
"@platformatic/foundation": "3.25.0",
|
|
72
|
+
"@platformatic/metrics": "3.25.0",
|
|
73
|
+
"@platformatic/generators": "3.25.0",
|
|
74
|
+
"@platformatic/scalar-theme": "3.25.0",
|
|
75
|
+
"@platformatic/telemetry": "3.25.0"
|
|
76
76
|
},
|
|
77
77
|
"engines": {
|
|
78
78
|
"node": ">=22.19.0"
|
package/schema.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
|
-
"$id": "https://schemas.platformatic.dev/@platformatic/service/3.
|
|
3
|
-
"version": "3.
|
|
2
|
+
"$id": "https://schemas.platformatic.dev/@platformatic/service/3.25.0.json",
|
|
3
|
+
"version": "3.25.0",
|
|
4
4
|
"title": "Platformatic Service Config",
|
|
5
5
|
"type": "object",
|
|
6
6
|
"properties": {
|
|
@@ -1535,6 +1535,10 @@
|
|
|
1535
1535
|
}
|
|
1536
1536
|
]
|
|
1537
1537
|
},
|
|
1538
|
+
"backlog": {
|
|
1539
|
+
"type": "integer",
|
|
1540
|
+
"description": "The maximum length of the queue of pending connections"
|
|
1541
|
+
},
|
|
1538
1542
|
"http2": {
|
|
1539
1543
|
"type": "boolean"
|
|
1540
1544
|
},
|