Improve Merge Request polling mechanism
The polling mechanism used in the merge request page often opens a new connection before the first one is received.
This is because the polling used here is using setInterval
instead of setTimeout
. The former starts a new request every time the interval is met, the latter only starts the second request after the first is finished.
There are in our code base 2 polling functions that already deal with this scenario: backOff
and Poll
. The Merge Request page is using smartInterval
that does not deal with this scenario.
We can improve this either by fixing smartInterval
or by using etag
polling in this code.
@jschatz1 @timzallmann can we schedule this? We could improve performance with less requests.
@smcgivern can we use the etag
polling in here? Is backend ready for this?