Compare commits

...

5 Commits

Author SHA1 Message Date
williamlardier 2f5a1b4a26
fix 2022-12-20 16:43:14 +01:00
williamlardier 058369df6b
test fix 2022-12-20 15:46:33 +01:00
williamlardier fc712d6660
temp 2022-12-20 15:00:58 +01:00
williamlardier 9a99a53341
ARSN-277: bump project version 2022-12-16 22:51:23 +01:00
williamlardier b21ca25f8b
ARSN-277: use standard http server 2022-12-16 22:51:23 +01:00
3 changed files with 23 additions and 20 deletions

View File

@ -1,6 +1,5 @@
import * as http from 'http'; import * as http from 'http';
import * as https from 'https'; import * as https from 'https';
import { https as HttpsAgent } from 'httpagent';
import * as tls from 'tls'; import * as tls from 'tls';
import * as net from 'net'; import * as net from 'net';
import assert from 'assert'; import assert from 'assert';
@ -410,11 +409,7 @@ export default class Server {
method: 'arsenal.network.Server.start', method: 'arsenal.network.Server.start',
port: this._port, port: this._port,
}); });
this._https.agent = new HttpsAgent.Agent(this._https, { this._https.agent = new https.Agent(this._https);
// Do not enforce the maximum number of sockets for the
// main server, as it might be able to serve more clients.
maxSockets: false,
});
this._server = https.createServer(this._https, this._server = https.createServer(this._https,
(req, res) => this._onRequest(req, res)); (req, res) => this._onRequest(req, res));
} else { } else {

View File

@ -3,7 +3,7 @@
"engines": { "engines": {
"node": ">=16" "node": ">=16"
}, },
"version": "8.1.75", "version": "8.1.76",
"description": "Common utilities for the S3 project components", "description": "Common utilities for the S3 project components",
"main": "build/index.js", "main": "build/index.js",
"repository": { "repository": {
@ -19,6 +19,7 @@
"dependencies": { "dependencies": {
"@azure/identity": "^3.1.1", "@azure/identity": "^3.1.1",
"@azure/storage-blob": "^12.12.0", "@azure/storage-blob": "^12.12.0",
"@scality/hdclient": "scality/hdclient#dc5dc59d11c85f7f007f21e4e1f69130876f8ae4",
"@types/async": "^3.2.12", "@types/async": "^3.2.12",
"@types/utf8": "^3.0.1", "@types/utf8": "^3.0.1",
"JSONStream": "^1.0.0", "JSONStream": "^1.0.0",
@ -33,7 +34,7 @@
"debug": "~4.1.0", "debug": "~4.1.0",
"diskusage": "^1.1.1", "diskusage": "^1.1.1",
"fcntl": "github:scality/node-fcntl#0.2.0", "fcntl": "github:scality/node-fcntl#0.2.0",
"hdclient": "scality/hdclient#1.1.4", "hdclient": "scality/hdclient#dc5dc59d11c85f7f007f21e4e1f69130876f8ae4",
"httpagent": "scality/httpagent#1.0.6", "httpagent": "scality/httpagent#1.0.6",
"https-proxy-agent": "^2.2.0", "https-proxy-agent": "^2.2.0",
"ioredis": "^4.28.5", "ioredis": "^4.28.5",
@ -47,7 +48,7 @@
"simple-glob": "^0.2.0", "simple-glob": "^0.2.0",
"socket.io": "2.4.1", "socket.io": "2.4.1",
"socket.io-client": "2.4.0", "socket.io-client": "2.4.0",
"sproxydclient": "scality/sproxydclient#8.0.6", "sproxydclient": "scality/sproxydclient#558e4a72a5bbba46aeb6c657f0c303c35ce1309a",
"utf8": "3.0.0", "utf8": "3.0.0",
"uuid": "^3.0.1", "uuid": "^3.0.1",
"werelogs": "scality/werelogs#8.1.2", "werelogs": "scality/werelogs#8.1.2",

View File

@ -1545,6 +1545,20 @@
resolved "https://registry.yarnpkg.com/@opentelemetry/api/-/api-1.3.0.tgz#27c6f776ac3c1c616651e506a89f438a0ed6a055" resolved "https://registry.yarnpkg.com/@opentelemetry/api/-/api-1.3.0.tgz#27c6f776ac3c1c616651e506a89f438a0ed6a055"
integrity sha512-YveTnGNsFFixTKJz09Oi4zYkiLT5af3WpZDu4aIUM7xX+2bHAkOJayFTVQd6zB8kkWPpbua4Ha6Ql00grdLlJQ== integrity sha512-YveTnGNsFFixTKJz09Oi4zYkiLT5af3WpZDu4aIUM7xX+2bHAkOJayFTVQd6zB8kkWPpbua4Ha6Ql00grdLlJQ==
"@scality/hdclient@scality/hdclient#dc5dc59d11c85f7f007f21e4e1f69130876f8ae4":
version "1.1.5"
resolved "https://codeload.github.com/scality/hdclient/tar.gz/dc5dc59d11c85f7f007f21e4e1f69130876f8ae4"
dependencies:
httpagent "github:scality/httpagent#1.0.6"
werelogs "github:scality/werelogs#8.1.2"
"@scality/hdclient@scality/hdclient#ef7fb7cb7c63075d43c57231bdefafc0bccd3b30":
version "1.1.4"
resolved "https://codeload.github.com/scality/hdclient/tar.gz/ef7fb7cb7c63075d43c57231bdefafc0bccd3b30"
dependencies:
httpagent "github:scality/httpagent#1.0.5"
werelogs "github:scality/werelogs#8.1.2"
"@sideway/address@^4.1.3": "@sideway/address@^4.1.3":
version "4.1.4" version "4.1.4"
resolved "https://registry.yarnpkg.com/@sideway/address/-/address-4.1.4.tgz#03dccebc6ea47fdc226f7d3d1ad512955d4783f0" resolved "https://registry.yarnpkg.com/@sideway/address/-/address-4.1.4.tgz#03dccebc6ea47fdc226f7d3d1ad512955d4783f0"
@ -3509,13 +3523,6 @@ hasha@^5.0.0:
is-stream "^2.0.0" is-stream "^2.0.0"
type-fest "^0.8.0" type-fest "^0.8.0"
hdclient@scality/hdclient#1.1.4:
version "1.1.4"
resolved "https://codeload.github.com/scality/hdclient/tar.gz/2ff1cdd213370b0a24aff5cd08da4fb5d25df5ec"
dependencies:
httpagent "github:scality/httpagent#1.0.5"
werelogs "github:scality/werelogs#8.1.2"
html-encoding-sniffer@^2.0.1: html-encoding-sniffer@^2.0.1:
version "2.0.1" version "2.0.1"
resolved "https://registry.yarnpkg.com/html-encoding-sniffer/-/html-encoding-sniffer-2.0.1.tgz#42a6dc4fd33f00281176e8b23759ca4e4fa185f3" resolved "https://registry.yarnpkg.com/html-encoding-sniffer/-/html-encoding-sniffer-2.0.1.tgz#42a6dc4fd33f00281176e8b23759ca4e4fa185f3"
@ -3557,7 +3564,7 @@ http-proxy-agent@^5.0.0:
dependencies: dependencies:
agentkeepalive "^4.2.1" agentkeepalive "^4.2.1"
httpagent@scality/httpagent#1.0.6: "httpagent@github:scality/httpagent#1.0.6", httpagent@scality/httpagent#1.0.6:
version "1.0.6" version "1.0.6"
resolved "https://codeload.github.com/scality/httpagent/tar.gz/66e97ab93532d79dbddcf6c4ea4df849b84c33c9" resolved "https://codeload.github.com/scality/httpagent/tar.gz/66e97ab93532d79dbddcf6c4ea4df849b84c33c9"
dependencies: dependencies:
@ -6016,9 +6023,9 @@ sprintf-js@~1.0.2:
resolved "https://registry.yarnpkg.com/sprintf-js/-/sprintf-js-1.0.3.tgz#04e6926f662895354f3dd015203633b857297e2c" resolved "https://registry.yarnpkg.com/sprintf-js/-/sprintf-js-1.0.3.tgz#04e6926f662895354f3dd015203633b857297e2c"
integrity sha1-BOaSb2YolTVPPdAVIDYzuFcpfiw= integrity sha1-BOaSb2YolTVPPdAVIDYzuFcpfiw=
sproxydclient@scality/sproxydclient#8.0.6: sproxydclient@scality/sproxydclient#558e4a72a5bbba46aeb6c657f0c303c35ce1309a:
version "8.0.6" version "8.0.7"
resolved "https://codeload.github.com/scality/sproxydclient/tar.gz/83bb5c58849fc8803c252b9f3776e491c915d67e" resolved "https://codeload.github.com/scality/sproxydclient/tar.gz/558e4a72a5bbba46aeb6c657f0c303c35ce1309a"
dependencies: dependencies:
async "^3.2.0" async "^3.2.0"
httpagent "github:scality/httpagent#1.0.5" httpagent "github:scality/httpagent#1.0.5"