RFR: 2666: Increase HTTP timeout for GitLab PUT/POST operations on files

Erik Joelsson erikj at openjdk.org
Wed Feb 25 18:15:50 UTC 2026


Recently we have seen problems with HTTP timeouts when interacting with a GitLab instance. These timeouts seem to sometimes cause lingering lock files in the Git repository in the server, which then blocks all write operations on the repository until an admin can remediate. When this happens for the mlbridge bot repo where we store mbox files tracking what emails have been sent for what PRs, the bot stops being able to send more emails.

An admin for this server said that increasing the HTTP timeout might alleviate this issue and make it less likely to trigger. We currently have a timeout of 30s for all HTTP requests, and they recommended increasing this to 60s. In this patch I'm making the timeout configurable on the request builder and setting it to 60s for the particular REST call causing the problem.

-------------

Commit messages:
 - SKARA-2666

Changes: https://git.openjdk.org/skara/pull/1752/files
  Webrev: https://webrevs.openjdk.org/?repo=skara&pr=1752&range=00
  Issue: https://bugs.openjdk.org/browse/SKARA-2666
  Stats: 19 lines in 2 files changed: 14 ins; 0 del; 5 mod
  Patch: https://git.openjdk.org/skara/pull/1752.diff
  Fetch: git fetch https://git.openjdk.org/skara.git pull/1752/head:pull/1752

PR: https://git.openjdk.org/skara/pull/1752


More information about the skara-dev mailing list