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 04d43b1 commit 8bcb96eCopy full SHA for 8bcb96e
lib/mcp/server.js
@@ -334,6 +334,10 @@ function createTransport(options = {}) {
334
}
335
});
336
337
+ // Set timeouts to protect against slow HTTP attacks
338
+ httpServer.timeout = 120000; // 2 minutes
339
+ httpServer.headersTimeout = 60000; // 1 minute
340
+ httpServer.requestTimeout = 120000; // 2 minutes
341
httpServer.listen(port, host, () => {
342
if (process.env.PM2_MCP_DEBUG === 'true') {
343
console.error('[pm2-mcp][debug] HTTP transport listening', `${host}:${port}${pathPart}`);
0 commit comments