Skip to content

Commit 6b62a10

Browse files
committed
fix: debug
1 parent 89b9b58 commit 6b62a10

File tree

2 files changed

+1
-12
lines changed

2 files changed

+1
-12
lines changed

sql/reports/challenges/submission-links.sql

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -60,4 +60,4 @@ WHERE rr.name = 'Submitter'
6060
) BETWEEN $2::timestamptz AND $3::timestamptz)
6161
)
6262
))
63-
LIMIT 100;
63+
LIMIT 500;

src/main.ts

Lines changed: 0 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
1-
import type { Server } from "http";
21
import { ValidationPipe } from "@nestjs/common";
32
import { NestFactory } from "@nestjs/core";
43
import { DocumentBuilder, SwaggerModule } from "@nestjs/swagger";
@@ -34,16 +33,6 @@ async function bootstrap() {
3433
const document = SwaggerModule.createDocument(app, config);
3534
SwaggerModule.setup("/v6/reports/api-docs", app, document);
3635

37-
const httpServer = app.getHttpAdapter().getHttpServer() as Server;
38-
39-
// Request timeout (no activity on socket)
40-
httpServer.setTimeout(300_000); // 5 min
41-
42-
// Optional but recommended when long requests + keep-alive are used:
43-
// keepAliveTimeout must be < headersTimeout
44-
httpServer.keepAliveTimeout = 295_000; // how long to keep idle keep-alive sockets
45-
httpServer.headersTimeout = 300_000; // max time to receive complete headers
46-
4736
await app.listen(port);
4837
console.log(`Application is running on: ${await app.getUrl()}`);
4938
console.log(

0 commit comments

Comments
 (0)