testcontainers / testcontainers/testcontainers-java

[Enhancement]: Make it possible to set ``responseTimeout``

Open
#10,725 1 comment 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

type/enhancement
Dominant language
Java
Stars
8.7k
Forks
1.9k
Avg merge
2d 17h
Merged PRs (30d)
9

Description

Module

Core

Proposal

In
https://github.com/testcontainers/testcontainers-java/blob/946b6aaced4d51fa613b331a8acaa4a212673138/core/src/main/java/org/testcontainers/dockerclient/DockerClientProviderStrategy.java#L395-L398

there is currently no option to set an overall responseTimeout.

This can result in hanging threads when there is a problem with Docker's API and no response is ever returned. Although this is rare, we observed such a problem recently in https://github.com/xdev-software/tci/issues/370

All other timeouts are configured in the default Apache HTTP client:

Image

It would be nice to somehow have an option to set the overall timeout (e.g. 10 min) to prevent situations like this.

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start in core/src/main/java/org/testcontainers/dockerclient/DockerClientProviderStrategy.java around lines 395-398, then inspect how the default Apache HTTP client configures its other timeouts. Determine where an overall responseTimeout can be configured, and verify that the resulting behavior prevents indefinitely hanging Docker API calls while preserving existing timeout settings.

Written by the indexing model from the issue text.

Assessment

Tech stack
docker, java
Domain
networking, testing
Issue type
Feature
Difficulty
3/5
Estimated time
1-2 days
Activity status
Quiet
Clarity
Mostly clear
Newbie friendliness
52/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.