Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Apply socket timeout to S3 CRT connections#7024

Merged
bentsherman merged 6 commits into
masterfrom
add-socket-timeout-s3-crt
Apr 15, 2026
Merged

Apply socket timeout to S3 CRT connections#7024
bentsherman merged 6 commits into
masterfrom
add-socket-timeout-s3-crt

Conversation

@jorgee

@jorgee jorgee commented Apr 10, 2026

Copy link
Copy Markdown
Contributor

This pull request updates how the socket_timeout configuration is handled for AWS S3 transfers using the CRT client in the SDK v2 integration. The main improvement is that when socket_timeout is set, it is now translated into a CRT connection health check, allowing the detection and closure of stalled S3 connections. The documentation and tests have also been updated to reflect this new behavior.

AWS S3 CRT Client Timeout Handling:

  • The socket_timeout property for S3 transfers using the CRT client is now mapped to a connection health check that enforces a minimum throughput of 1 byte per second within the specified timeout period, instead of being ignored. This helps detect and close stalled CRT connections.

Documentation Updates:

  • The user guide (aws-java-sdk-v2.md) and configuration reference (config.md) have been updated to clarify the new behavior of the aws.client.socketTimeout option for CRT-based S3 transfers, including the lack of a default and the new health check mechanism. [1] [2]

Testing Enhancements:

  • The test suite for S3 client configuration now verifies that the CRT health configuration is set with the correct minimum throughput and timeout values when socket_timeout is specified.

Dependency and Import Adjustments:

  • Added the necessary import for S3CrtConnectionHealthConfiguration to support the new health check configuration.
  • Cleaned up unused imports in the S3 client configuration test file.

@jorgee jorgee requested a review from a team as a code owner April 10, 2026 17:09
@netlify

netlify Bot commented Apr 10, 2026

Copy link
Copy Markdown

Deploy Preview for nextflow-docs-staging ready!

Name Link
🔨 Latest commit 27688cf
🔍 Latest deploy log https://app.netlify.com/projects/nextflow-docs-staging/deploys/69dfb45bd7e0020008f937c2
😎 Deploy Preview https://deploy-preview-7024--nextflow-docs-staging.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify project configuration.

Comment thread docs/guides/aws-java-sdk-v2.md Outdated
@jorgee jorgee requested a review from bentsherman April 14, 2026 15:59
@bentsherman bentsherman merged commit 6f4a217 into master Apr 15, 2026
25 of 26 checks passed
@bentsherman bentsherman deleted the add-socket-timeout-s3-crt branch April 15, 2026 16:37
jo-delia-faraguna added a commit to securebio/nao-mgs-workflow that referenced this pull request May 6, 2026
Nextflow 26.04.0 (nextflow-io/nextflow#7024) repurposed this config key
to also feed S3CrtConnectionHealthConfiguration.minimumThroughputTimeout,
which the AWS SDK rejects when zero, aborting every S3 staging task with
"minimumThroughputTimeout must be positive". 1 h preserves the previous
"be patient with slow transfers" intent without the SDK validation error.

Co-Authored-By: Claude Opus 4.7 (1M context) <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants