mirror of
https://github.com/aws-actions/configure-aws-credentials.git
synced 2026-09-04 06:15:07 +09:00
chore: Update dist
This commit is contained in:
+1
-1
@@ -1709,7 +1709,7 @@ The following npm packages may be included in this product:
|
|||||||
- @smithy/middleware-content-length@4.2.14
|
- @smithy/middleware-content-length@4.2.14
|
||||||
- @smithy/middleware-endpoint@4.4.31
|
- @smithy/middleware-endpoint@4.4.31
|
||||||
- @smithy/middleware-stack@4.2.14
|
- @smithy/middleware-stack@4.2.14
|
||||||
- @smithy/node-http-handler@4.6.0
|
- @smithy/node-http-handler@4.6.1
|
||||||
- @smithy/property-provider@4.2.14
|
- @smithy/property-provider@4.2.14
|
||||||
- @smithy/shared-ini-file-loader@4.4.9
|
- @smithy/shared-ini-file-loader@4.4.9
|
||||||
- @smithy/signature-v4@5.3.14
|
- @smithy/signature-v4@5.3.14
|
||||||
|
|||||||
+27
-16
@@ -23546,6 +23546,11 @@ or increase socketAcquisitionWarningTimeout=(millis) in the NodeHttpHandler conf
|
|||||||
deref() {
|
deref() {
|
||||||
return this.session;
|
return this.session;
|
||||||
}
|
}
|
||||||
|
close() {
|
||||||
|
if (!this.session.closed) {
|
||||||
|
this.session.close();
|
||||||
|
}
|
||||||
|
}
|
||||||
destroy() {
|
destroy() {
|
||||||
this.refs = 0;
|
this.refs = 0;
|
||||||
if (!this.session.destroyed) {
|
if (!this.session.destroyed) {
|
||||||
@@ -23629,16 +23634,18 @@ or increase socketAcquisitionWarningTimeout=(millis) in the NodeHttpHandler conf
|
|||||||
}
|
}
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
const destroySessionCb = () => {
|
const graceful = () => {
|
||||||
session.destroy();
|
this.removeFromPoolAndClose(url, ref);
|
||||||
this.removeFromPool(url, ref);
|
|
||||||
};
|
};
|
||||||
session.on("goaway", destroySessionCb);
|
const ensureDestroyed = () => {
|
||||||
session.on("error", destroySessionCb);
|
this.removeFromPoolAndCheckedDestroy(url, ref);
|
||||||
session.on("frameError", destroySessionCb);
|
};
|
||||||
session.on("close", () => this.removeFromPool(url, ref));
|
session.on("goaway", graceful);
|
||||||
|
session.on("error", ensureDestroyed);
|
||||||
|
session.on("frameError", ensureDestroyed);
|
||||||
|
session.on("close", ensureDestroyed);
|
||||||
if (connectionConfiguration.requestTimeout) {
|
if (connectionConfiguration.requestTimeout) {
|
||||||
session.setTimeout(connectionConfiguration.requestTimeout, destroySessionCb);
|
session.setTimeout(connectionConfiguration.requestTimeout, ensureDestroyed);
|
||||||
}
|
}
|
||||||
pool.offerLast(ref);
|
pool.offerLast(ref);
|
||||||
ref.retain();
|
ref.retain();
|
||||||
@@ -23652,15 +23659,14 @@ or increase socketAcquisitionWarningTimeout=(millis) in the NodeHttpHandler conf
|
|||||||
const ref = new ClientHttp2SessionRef(http22.connect(url));
|
const ref = new ClientHttp2SessionRef(http22.connect(url));
|
||||||
const session = ref.deref();
|
const session = ref.deref();
|
||||||
session.settings({ maxConcurrentStreams: 1 });
|
session.settings({ maxConcurrentStreams: 1 });
|
||||||
const destroySession = () => {
|
const ensureDestroyed = () => {
|
||||||
session.destroy();
|
ref.destroy();
|
||||||
};
|
};
|
||||||
session.on("goaway", destroySession);
|
session.on("error", ensureDestroyed);
|
||||||
session.on("error", destroySession);
|
session.on("frameError", ensureDestroyed);
|
||||||
session.on("frameError", destroySession);
|
session.on("close", ensureDestroyed);
|
||||||
session.on("close", destroySession);
|
|
||||||
if (connectionConfiguration.requestTimeout) {
|
if (connectionConfiguration.requestTimeout) {
|
||||||
session.setTimeout(connectionConfiguration.requestTimeout, destroySession);
|
session.setTimeout(connectionConfiguration.requestTimeout, ensureDestroyed);
|
||||||
}
|
}
|
||||||
ref.retain();
|
ref.retain();
|
||||||
return ref;
|
return ref;
|
||||||
@@ -23701,8 +23707,13 @@ or increase socketAcquisitionWarningTimeout=(millis) in the NodeHttpHandler conf
|
|||||||
}
|
}
|
||||||
return pools;
|
return pools;
|
||||||
}
|
}
|
||||||
removeFromPool(authority, ref) {
|
removeFromPoolAndClose(authority, ref) {
|
||||||
this.connectionPools.get(authority)?.remove(ref);
|
this.connectionPools.get(authority)?.remove(ref);
|
||||||
|
ref.close();
|
||||||
|
}
|
||||||
|
removeFromPoolAndCheckedDestroy(authority, ref) {
|
||||||
|
this.connectionPools.get(authority)?.remove(ref);
|
||||||
|
ref.destroy();
|
||||||
}
|
}
|
||||||
getPool(url) {
|
getPool(url) {
|
||||||
if (!this.connectionPools.has(url)) {
|
if (!this.connectionPools.has(url)) {
|
||||||
|
|||||||
Reference in New Issue
Block a user