Skip to content

Commit

Permalink
fix: removed HTTP keep-alive code
Browse files Browse the repository at this point in the history
Closes #89
  • Loading branch information
theburningmonk committed Oct 1, 2019
1 parent 77d3425 commit 7127044
Show file tree
Hide file tree
Showing 18 changed files with 121 additions and 237 deletions.
14 changes: 0 additions & 14 deletions packages/lambda-powertools-firehose-client/index.js
Original file line number Diff line number Diff line change
@@ -1,18 +1,4 @@
const AWS = require('aws-sdk')
const https = require('https')
const sslAgent = new https.Agent({
keepAlive: true,
maxSockets: 50,
rejectUnauthorized: true
})
sslAgent.setMaxListeners(0)

AWS.config.update({
httpOptions: {
agent: sslAgent
}
})

const client = new AWS.Firehose()
const Log = require('@dazn/lambda-powertools-logger')
const CorrelationIds = require('@dazn/lambda-powertools-correlation-ids')
Expand Down
16 changes: 8 additions & 8 deletions packages/lambda-powertools-firehose-client/package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion packages/lambda-powertools-firehose-client/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
"dependencies": {
"@dazn/lambda-powertools-correlation-ids": "^1.8.2",
"@dazn/lambda-powertools-logger": "^1.8.2",
"aws-sdk": "^2.246.1"
"aws-sdk": "^2.540.0"
},
"publishConfig": {
"access": "public"
Expand Down
14 changes: 0 additions & 14 deletions packages/lambda-powertools-kinesis-client/index.js
Original file line number Diff line number Diff line change
@@ -1,18 +1,4 @@
const AWS = require('aws-sdk')
const https = require('https')
const sslAgent = new https.Agent({
keepAlive: true,
maxSockets: 50,
rejectUnauthorized: true
})
sslAgent.setMaxListeners(0)

AWS.config.update({
httpOptions: {
agent: sslAgent
}
})

const client = new AWS.Kinesis()
const Log = require('@dazn/lambda-powertools-logger')
const CorrelationIds = require('@dazn/lambda-powertools-correlation-ids')
Expand Down
54 changes: 23 additions & 31 deletions packages/lambda-powertools-kinesis-client/package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion packages/lambda-powertools-kinesis-client/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
"dependencies": {
"@dazn/lambda-powertools-correlation-ids": "^1.8.2",
"@dazn/lambda-powertools-logger": "^1.9.0",
"aws-sdk": "^2.246.1"
"aws-sdk": "^2.540.0"
},
"publishConfig": {
"access": "public"
Expand Down
14 changes: 0 additions & 14 deletions packages/lambda-powertools-lambda-client/index.js
Original file line number Diff line number Diff line change
@@ -1,18 +1,4 @@
const AWS = require('aws-sdk')
const https = require('https')
const sslAgent = new https.Agent({
keepAlive: true,
maxSockets: 50,
rejectUnauthorized: true
})
sslAgent.setMaxListeners(0)

AWS.config.update({
httpOptions: {
agent: sslAgent
}
})

const client = new AWS.Lambda()
const Log = require('@dazn/lambda-powertools-logger')
const CorrelationIds = require('@dazn/lambda-powertools-correlation-ids')
Expand Down
54 changes: 23 additions & 31 deletions packages/lambda-powertools-lambda-client/package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion packages/lambda-powertools-lambda-client/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
"dependencies": {
"@dazn/lambda-powertools-correlation-ids": "^1.8.2",
"@dazn/lambda-powertools-logger": "^1.9.0",
"aws-sdk": "^2.246.1"
"aws-sdk": "^2.540.0"
},
"publishConfig": {
"access": "public"
Expand Down
14 changes: 0 additions & 14 deletions packages/lambda-powertools-sns-client/index.js
Original file line number Diff line number Diff line change
@@ -1,18 +1,4 @@
const AWS = require('aws-sdk')
const https = require('https')
const sslAgent = new https.Agent({
keepAlive: true,
maxSockets: 50,
rejectUnauthorized: true
})
sslAgent.setMaxListeners(0)

AWS.config.update({
httpOptions: {
agent: sslAgent
}
})

const client = new AWS.SNS()
const CorrelationIds = require('@dazn/lambda-powertools-correlation-ids')

Expand Down
Loading

0 comments on commit 7127044

Please sign in to comment.