Skip to content

feat: allow configuration of downloader connection socket & read timeouts#509

Merged
jeremylong merged 2 commits into
dependency-check:mainfrom
chadlwilson:allow-timeout-configuration
Jul 1, 2026
Merged

feat: allow configuration of downloader connection socket & read timeouts#509
jeremylong merged 2 commits into
dependency-check:mainfrom
chadlwilson:allow-timeout-configuration

Conversation

@chadlwilson

@chadlwilson chadlwilson commented May 7, 2026

Copy link
Copy Markdown
Collaborator

Unlike all the other integrations the global Downloader timeouts aren't configurable via the Gradle plugin.

This allows using a Duration or any number type to configure them.

Needs dependency-check/DependencyCheck#8490 merged afterwards to synchronize the docs.

Signed-off-by: Chad Wilson <29788154+chadlwilson@users.noreply.github.com>
Signed-off-by: Chad Wilson <29788154+chadlwilson@users.noreply.github.com>

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Note

Copilot was unable to run its full agentic suite in this review.

Adds configurable HTTP timeouts to the Gradle plugin extension and wires them into task settings, with corresponding spec updates and a version bump.

Changes:

  • Introduce connectionTimeout and readTimeout (as Duration) on DependencyCheckExtension.
  • Map the new duration values into Settings in ConfiguredTask.
  • Update plugin specs to assert and configure the new timeout properties; bump odc version to a snapshot.

Reviewed changes

Copilot reviewed 4 out of 4 changed files in this pull request and generated 4 comments.

File Description
src/test/groovy/org/owasp/dependencycheck/gradle/DependencyCheckGradlePluginSpec.groovy Updates tests to configure/verify new timeout properties and refactors assertions into with { ... } blocks.
src/main/groovy/org/owasp/dependencycheck/gradle/tasks/ConfiguredTask.groovy Maps new Duration timeout properties into settings keys as millisecond values.
src/main/groovy/org/owasp/dependencycheck/gradle/extension/DependencyCheckExtension.groovy Adds Property<Duration> timeouts with setters (Duration + Number) and task input annotations.
gradle/libs.versions.toml Bumps odc version to 12.2.3-SNAPSHOT.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Comment thread gradle/libs.versions.toml
@chadlwilson chadlwilson requested a review from jeremylong May 30, 2026 14:55
@jeremylong jeremylong merged commit 6c5135a into dependency-check:main Jul 1, 2026
4 checks passed
jeremylong pushed a commit that referenced this pull request Jul 1, 2026
…outs (#509)

Signed-off-by: Chad Wilson <29788154+chadlwilson@users.noreply.github.com>
@chadlwilson chadlwilson deleted the allow-timeout-configuration branch July 1, 2026 14:42
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants