New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Request timeout #281

Open
manishonline opened this Issue Apr 18, 2018 · 2 comments

Comments

Projects
None yet
4 participants
@manishonline

manishonline commented Apr 18, 2018

Is there a way to set the request timeout? I don't find anything in the application.yml configuration file. The issue it is causing is, if couple of old requests, which take longer time to complete, are still processing and user tries to refresh the GUI, the refresh call does nothing as requests are queued for older request to complete.

I was wondering if it can be done so that user experience can be improved.

Spring cloud Gateway Version : 2.0.0.BUILD-SNAPSHOT
Spring Cloud Version : Finchley.BUILD-SNAPSHOT
Netty Version: 4.1.19.Final
Reactor Netty Version : 0.7.5.RELEASE

@fitzoh

This comment has been minimized.

Contributor

fitzoh commented Apr 24, 2018

Timeouts can be managed by Hystrix as mentioned in #291 , @manishonline.

If you have a Hystrix filter that looks like this:

spring:
  cloud:
    gateway:
      routes:
      - id: hystrix_route
        uri: http://example.org
        filters:
        - Hystrix=myCommandName

then you should be able to set a timeout like this:
hystrix.command.myCommandName.execution.isolation.thread.timeoutInMilliseconds: 5000

@rollinnutties

This comment has been minimized.

rollinnutties commented Aug 23, 2018

Hi how to configure timeouts if we are using isolation strategy semophore in Hystrix.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment