Commit Graph

13 Commits

Author SHA1 Message Date
Violeta Georgieva
4c8a1d6051 Fix memory leak in NettyWriteResponseFilter.wrap (#2019)
NettyWriteResponseFilter.wrap never releases the original poolable
buffer in case of DefaultDataBufferFactory.

Related to https://github.com/reactor/reactor-netty/issues/1359
2020-11-02 12:05:54 -05:00
Olga Maciaszek-Sharma
652a44bc4d Get overrideScheme from isSecure(). (#2003) 2020-10-27 12:20:50 +01:00
Marcin Grzejszczak
5ef66ac8f1 Fixed the build 2020-10-26 12:05:47 +01:00
Marcin Grzejszczak
d4a114c012 Updated autoconfiguration setup 2020-10-26 11:16:55 +01:00
spencergibb
f09d8b2c5d Allows gateway metrics prefix to be customized.
Fixes gh-1981
2020-10-09 15:51:20 -04:00
Bruno Silva
d8e53f1188 Allows filters and predicates to be disabled by a property.
This is achieved by three new annotations:
- @ConditionalOnEnabledFilter
- @ConditionalOnEnabledGlobalFilter
- @ConditionalOnEnabledPredicate

properties are :
- spring.cloud.gateway.filter.<name>.enabled
- spring.cloud.gateway.global-filter.<name>.enabled
- spring.cloud.gateway.predicate.<name>.enabled

Where name is the snake case version of the class name minus the suffix.
So, `RemoveCachedBodyFilter` has `<name>` of `remove-cached-body` and
`PathRoutePredicateFactor has a `<name>` of `path.

Fixes gh-72
2020-09-25 20:47:37 -04:00
spencergibb
5e0baf5480 Closes connection on retry.
see gh-1866
2020-09-25 15:26:22 -04:00
spencergibb
1cfe3f9636 fixes import order 2020-09-15 14:05:00 -04:00
spencergibb
e4fc804fc2 Gets ReactorServiceInstanceLoadBalancer from context factory.
Along with https://github.com/spring-cloud/spring-cloud-commons/issues/825 this should eliminate the use of `BeanFactoryUtils.beanNamesForTypeIncludingAncestors()` during loadbalancing.

Fixes gh-1941
2020-09-15 14:03:48 -04:00
spencergibb
fa0ffd0a2b Adds BooleanOpSpec.not()
This allows to negate specific predicates rather than just the previous predicate.

Fixes gh-1932
2020-09-15 14:03:47 -04:00
Haytham Mohamed
f961b3625e add actuator endpoint to expose RouteDefinitions (#1942)
Fixes gh-1911
2020-09-15 14:03:39 -04:00
spencergibb
52930d2458 Don't refresh routes on management context events.
Previously, the RouteRefreshListener reset the routes cache on all ContextRefreshedEvents. If actuator is run on a seperate port, to ContextRefreshedEvents are published. This adds a check to only reset the cache if the event does not come from the management context.

Fixes gh-1928
2020-09-14 16:52:28 -04:00
Spencer Gibb
676866cfcf Migrates from spring-cloud-gateway-core to spring-cloud-gateway-server. (#1807)
spring-cloud-starter-gateway now depends on spring-cloud-gateway-server.

spring-cloud-gateway-core now depends on spring-cloud-gateway-server and prints a deprecation message if users are depending on spring-cloud-gateway-core directly.
2020-09-08 16:34:00 -04:00