Skip to content

Replace setInterval with setTimeout to prevent highly frequent requests

What does this MR do?

This MR replaces setInterval with setTimeout to prevent highly frequent requests in build.js.

Are there points in the code the reviewer needs to double check?

n/a

Why was this MR needed?

As described in #28212 (closed), XHR requests to the server occur every 4.0 s when browsing a specific Job (formally Build) page. Especially when the response of the XHR is slower than 4.0 sec (typically large and complicated build trace), multiple requests happen, which may cause DoS.

Screenshots (if relevant)

n/a

Does this MR meet the acceptance criteria?

What are the relevant issue numbers?

Closes #28212 (closed)

Edited by Takuya Noguchi

Merge request reports