testcontainers / testcontainers/testcontainers-java
[Enhancement]: Make it possible to set ``responseTimeout``
Nobody has claimed this yet.
- Dominant language
- Java
- Stars
- 8.7k
- Forks
- 1.9k
- Avg merge
- 2d 17h
- Merged PRs (30d)
- 9
Description
Module
Core
Proposal
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:
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
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- 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