Zuul/Hystrix: HTTP connection leak in case of timeout
See original GitHub issueSee https://github.com/spring-cloud/spring-cloud-netflix/issues/327 for a complete description of the issue and scenarios to reproduce it.
The bottom line is:
It turns out that Zuul leaks HTTP connections if a service takes longer than the Hystrix execution timeout but less than the ReadTimeout. To summarise:
execTime < hystrixTimeout < readTimeout --> OK (no leak) hystrixTimeout < execTime < readTimeout --> LEAK hystrixTimeout < readTimeout < execTime --> OK (no leak) readTimeout < execTime < hystrixTimeout --> OK (no leak) readTimeout < hystrixTimeout < execTime --> LEAK
The problem has been identified in the RibbonCommand
returning an HttpResponse
that will never be closed in case of Hystrix timeout. Hence causing connection leaks in the HTTP connection pool.
Although the issue affects SpringCloud’s version of the Zuul server, it seems that com.netflix.zuul.dependency.ribbon.hystrix.RibbonCommand
would be affected as well.
Issue Analytics
- State:
- Created 8 years ago
- Comments:8 (3 by maintainers)
any news?
This issue is still marked ‘Open,’ but the comments suggest that a bug fix has been merged nearly a year ago. Is this fixed or is it still hanging out there open?