Skip to content

Commit 24e0f26

Browse files
committed
shorten timeout
1 parent 848e875 commit 24e0f26

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

svc/retriever.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -152,12 +152,12 @@ app.get('/match/:match_id', (req, res, next) => {
152152
matchAttempts[rKey] = (matchAttempts[rKey] ?? 0) + 1;
153153
console.time('match:' + matchId);
154154
const timeout = setTimeout(() => {
155-
// Respond after 4 seconds to send back header info
156-
// Currently consumers are configured to fail after 5 seconds
155+
// Respond after 3 seconds to send back header info
156+
// Currently consumers are configured to fail after 4 seconds
157157
// Use a 200 status code to avoid exception, we'll check the response body after
158158
console.timeEnd('match:' + matchId);
159159
res.end();
160-
}, 4000);
160+
}, 3000);
161161
client.sendToGC(
162162
DOTA_APPID,
163163
EDOTAGCMsg.values.k_EMsgGCMatchDetailsRequest,

0 commit comments

Comments
 (0)