Skip to content

Commit

Permalink
chore: try keepalive false
Browse files Browse the repository at this point in the history
  • Loading branch information
bryn-pins committed Oct 25, 2024
1 parent 9d4674f commit 9a7f1e8
Show file tree
Hide file tree
Showing 5 changed files with 16 additions and 0 deletions.
3 changes: 3 additions & 0 deletions packages/appeals-service-api/src/app.js
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,9 @@ require('express-async-errors');
require('./controllers/appeals-for-submission-to-horizon-scheduler')();
const app = express();

const https = require('https');
https.globalAgent = new https.Agent({ keepAlive: false });

app.use(bodyParser.json());
app.use(bodyParser.urlencoded({ extended: true }));

Expand Down
3 changes: 3 additions & 0 deletions packages/auth-server/src/app.js
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,9 @@ import * as otp from './grants/otp-grant-handler.js';
import * as ropc from './grants/ropc-grant-handler.js';
import apiErrorHandler from './errors/api-error-handler.js';

import https from 'https';
https.globalAgent = new https.Agent({ keepAlive: false });

const app = express();

const oidc = new OIDC(`${oidcConfig.host}:${config.server.port}`, oidcConfig.configuration);
Expand Down
3 changes: 3 additions & 0 deletions packages/document-service-api/src/app.js
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,9 @@ const routes = require('./routes');
require('express-async-errors');
const app = express();

const https = require('https');
https.globalAgent = new https.Agent({ keepAlive: false });

app
.use(bodyParser.json())
.use(
Expand Down
3 changes: 3 additions & 0 deletions packages/forms-web-app/src/app.js
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,9 @@ const { spoolRoutes } = require('@pins/common');

const app = express();

const https = require('https');
https.globalAgent = new https.Agent({ keepAlive: false });

app.use(
pinoHttp({
logger,
Expand Down
4 changes: 4 additions & 0 deletions packages/pdf-service-api/src/app.js
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,10 @@ const {
} = config;

const app = express();

const https = require('https');
https.globalAgent = new https.Agent({ keepAlive: false });

app
.use(
cors({
Expand Down

0 comments on commit 9a7f1e8

Please sign in to comment.