Add support for configuring TLS handshake timeouts
This commit is contained in:
@@ -950,7 +950,24 @@ spring:
|
||||
- cert2.pem
|
||||
----
|
||||
|
||||
If the Spring Cloud Gateway is not provisioned with trusted certificates the default trust store is used (which can be overriden with system property javax.net.ssl.trustStore.
|
||||
If the Spring Cloud Gateway is not provisioned with trusted certificates the default trust store is used (which can be overriden with system property javax.net.ssl.trustStore).
|
||||
|
||||
=== TLS Handshake
|
||||
|
||||
The Gateway maintains a client pool that it uses to route to backends. When communicating over https the client initiates a TLS handshake. A number of timeouts are assoicated with this handshake. These timeouts can be configured (defaults shown):
|
||||
|
||||
.application.yml
|
||||
[source,yaml]
|
||||
----
|
||||
spring:
|
||||
cloud:
|
||||
gateway:
|
||||
httpclient:
|
||||
ssl:
|
||||
handshake-timeout-millis: 10000
|
||||
close-notify-flush-timeout-millis: 3000
|
||||
close-notify-read-timeout-millis: 0
|
||||
----
|
||||
|
||||
== Configuration
|
||||
|
||||
|
||||
Reference in New Issue
Block a user