Giter Club home page Giter Club logo

Comments (6)

tddmonkey avatar tddmonkey commented on June 19, 2024

Is there any update on this? While doing fault tolerance testing I noticed that the timeouts work correctly on the sync clients but not on the async clients. This will be a blocker for going to production.

from aws-sdk-java-v2.

millems avatar millems commented on June 19, 2024

@tddmonkey Would being able to configure the socket connect and read timeouts be sufficient to unblock you?

from aws-sdk-java-v2.

tddmonkey avatar tddmonkey commented on June 19, 2024

@millems I'm using Reactor around all my code so pushing a .timeout() on to there was sufficient for now. It will be a pain moving forward as:

a) I have to remember to do this!
b) Timeouts will be configured in 2 places (on the actual call and also on the non-functioning config).

from aws-sdk-java-v2.

alvaroc1 avatar alvaroc1 commented on June 19, 2024

Step Functions' client is unusable without being able to set the request timeout. All requests for GetActivityTask timeout before the server can close the connection (long-polling).

@millems How do you configure read timeouts?

from aws-sdk-java-v2.

millems avatar millems commented on June 19, 2024

The read timeout can be configured in the HTTP client. For sync clients, that would be the ApacheHttpConfigurationFactory:

ApacheSdkHttpClientFactory apacheConfig = ApacheSdkHttpClientFactory.builder()
                                                                    .connectionTimeout(Duration.ofSeconds(65))
                                                                    .maxConnections(1_000)
                                                                    .build();
SWFClient client = SWFClient.builder()
                            .httpConfiguration(c -> c.httpClientFactory(apacheConfig))
                            .build();

from aws-sdk-java-v2.

zoewangg avatar zoewangg commented on June 19, 2024

Implemented in #724 and #657

from aws-sdk-java-v2.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.