responseMono timeout is a noop since the return Mono is ignored (#515)
This commit is contained in:
committed by
Spencer Gibb
parent
cf28327eeb
commit
5cf466cd2a
@@ -117,7 +117,7 @@ public class NettyRoutingFilter implements GlobalFilter, Ordered {
|
||||
});
|
||||
|
||||
if (properties.getResponseTimeout() != null) {
|
||||
responseMono.timeout(properties.getResponseTimeout(),
|
||||
responseMono = responseMono.timeout(properties.getResponseTimeout(),
|
||||
Mono.error(new TimeoutException("Response took longer than timeout: " +
|
||||
properties.getResponseTimeout())));
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user