INT-4183: Add SSL Handshake Timeout for TCP

JIRA: https://jira.spring.io/browse/INT-4183

Previously, this was hard-coded to 30 seconds.

* Fix typos according PR comments
This commit is contained in:
Gary Russell
2016-12-13 14:55:53 -05:00
committed by Artem Bilan
parent 61e77435ab
commit 4e5d9016b3
12 changed files with 133 additions and 2 deletions

View File

@@ -893,6 +893,9 @@ The `DefaulTcpSSLContextSupport` class also has an optional 'protocol' property,
The keystore file names (first two constructor arguments) use the Spring `Resource` abstraction; by default the files will be located on the classpath, but this can be overridden by using the `file:` prefix, to find the files on the filesystem instead.
Starting with _version 4.3.6_, when using NIO, you can specify an `ssl-handshake-timeout` (seconds) on the connection factory.
This timeout (default 30) is used during SSL handshake when waiting for data; if the timeout is exceeded, the process is aborted and the socket closed.
==== Advanced Techniques
In many cases, the configuration described above is all that is needed to enable secure communication over TCP/IP.