Skip to content

Commit

Permalink
Merge pull request #912 from matrix-org/travis/wk/timeouts
Browse files Browse the repository at this point in the history
Use a short timeout for .well-known requests
  • Loading branch information
turt2live committed May 14, 2019
2 parents 09438b4 + 25df31b commit 4ad2052
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/autodiscovery.js
Original file line number Diff line number Diff line change
Expand Up @@ -480,7 +480,7 @@ export class AutoDiscovery {
const request = require("./matrix").getRequest();
if (!request) throw new Error("No request library available");
request(
{ method: "GET", uri: url },
{ method: "GET", uri: url, timeout: 5000 },
(err, response, body) => {
if (err || response.statusCode < 200 || response.statusCode >= 300) {
let action = "FAIL_PROMPT";
Expand Down

0 comments on commit 4ad2052

Please sign in to comment.