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
Can I set timeout configuration for feign or where can I find the configuration document? #590
Comments
Some configuration is needed to add, like spring-cloud/spring-cloud-netflix#1612 |
Thanks for your reply. What is the relationship between OpenFeign/feign and spring-cloud-netflix? Right now I just use feign independently. I do not have the annotation |
I think the feign is just a wrapper of hystrix, so I just associate the hystrix doc: https://github.com/Netflix/Hystrix/wiki/Configuration ConfigurationManager.getConfigInstance()
.setProperty("hystrix.command.PhotoService#getToken(String,String,String).execution.isolation.thread.timeoutInMilliseconds", 7000);
return Feign.builder()
.decoder(new GsonDecoder())
.encoder(new GsonEncoder())
.options(new Request.Options(config.getConnectTimeoutMillis(), config.getReadTimeoutMillis()))
.target(PhotoService.class, baseUrl); |
Thanks for you reply. It solved my problem. |
i find HystrixFeign just use FeignClient's configuration , so the HystrixCommand's timeout then the FeignClient's timeout config? |
Right now the info is not enough.
The text was updated successfully, but these errors were encountered: