@aws-sdk/node-http-handler
Advanced tools
Comparing version 3.74.0 to 3.76.0
@@ -6,2 +6,13 @@ # Change Log | ||
# [3.76.0](https://github.com/aws/aws-sdk-js-v3/compare/v3.75.0...v3.76.0) (2022-04-22) | ||
### Bug Fixes | ||
* **node-http-handler:** http2 lets node exit ([#3541](https://github.com/aws/aws-sdk-js-v3/issues/3541)) ([7480667](https://github.com/aws/aws-sdk-js-v3/commit/74806672bcd462dae51197294f3160f32f867b62)) | ||
# [3.74.0](https://github.com/aws/aws-sdk-js-v3/compare/v3.73.0...v3.74.0) (2022-04-20) | ||
@@ -8,0 +19,0 @@ |
@@ -49,2 +49,3 @@ "use strict"; | ||
}); | ||
session.ref(); | ||
req.on("response", (headers) => { | ||
@@ -88,2 +89,3 @@ const httpResponse = new protocol_http_1.HttpResponse({ | ||
req.on("close", () => { | ||
session.unref(); | ||
if (this.disableConcurrentStreams) { | ||
@@ -105,2 +107,3 @@ session.destroy(); | ||
const newSession = (0, http2_1.connect)(authority); | ||
newSession.unref(); | ||
const destroySessionCb = () => { | ||
@@ -107,0 +110,0 @@ this.destroySession(newSession); |
@@ -59,2 +59,3 @@ import { __assign, __values } from "tslib"; | ||
var req = session.request(__assign(__assign({}, request.headers), (_a = {}, _a[constants.HTTP2_HEADER_PATH] = queryString ? "".concat(path, "?").concat(queryString) : path, _a[constants.HTTP2_HEADER_METHOD] = method, _a))); | ||
session.ref(); | ||
req.on("response", function (headers) { | ||
@@ -98,2 +99,3 @@ var httpResponse = new HttpResponse({ | ||
req.on("close", function () { | ||
session.unref(); | ||
if (_this.disableConcurrentStreams) { | ||
@@ -116,2 +118,3 @@ session.destroy(); | ||
var newSession = connect(authority); | ||
newSession.unref(); | ||
var destroySessionCb = function () { | ||
@@ -118,0 +121,0 @@ _this.destroySession(newSession); |
{ | ||
"name": "@aws-sdk/node-http-handler", | ||
"version": "3.74.0", | ||
"version": "3.76.0", | ||
"description": "Provides a way to make requests", | ||
@@ -5,0 +5,0 @@ "scripts": { |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
114732
1191