We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 735874e commit cebeda0Copy full SHA for cebeda0
src/api/routes/core-node-rpc-proxy.ts
@@ -25,9 +25,13 @@ export function createCoreNodeRpcProxyRouter(): express.Router {
25
26
logger.info(`/v2/* proxying to: ${stacksNodeRpcEndpoint}`);
27
28
+ // Note: while keep-alive may result in some performance improvements with the stacks-node http server,
29
+ // it can also cause request distribution issues when proxying to a pool of stacks-nodes. See:
30
+ // https://github.com/blockstack/stacks-blockchain-api/issues/756
31
const httpAgent = new Agent({
- keepAlive: true,
- keepAliveMsecs: 60000,
32
+ // keepAlive: true,
33
+ keepAlive: false, // `false` is the default -- set it explicitly for readability anyway.
34
+ // keepAliveMsecs: 60000,
35
maxSockets: 200,
36
maxTotalSockets: 400,
37
});
0 commit comments