Please sign in to comment.
INT-1872 Allow Indefinite Socket Timeout
Previously, for single-use server sockets, and for client sockets that have a collaborating inbound adapter, the socket timeout was set to 10 seconds, with no way to set to infinity. The work around was to set it to Integer.MAX_VALUE. The intent was to avoid DoS attacks and mis-behaved clients, but some users have expressed a desire to be able to set an infinite timeout in both scenarios. A future release may remove the 10 second default from the client socket that has a collaborating inbound adapter, and default to infinity. For this reason, that case now emits a warning. The default 10 second timeout on single-use server sockets will likely remain. INT-1872 Remove WARN Log We decided to eliminate the log message regarding a possible future change to the default timeout for client sockets used for request/reply.
- Loading branch information...
Showing with 19 additions and 14 deletions.
- +4 −7 docs/src/reference/docbook/ip.xml
- +6 −1 .../main/java/org/springframework/integration/ip/tcp/connection/AbstractClientConnectionFactory.java
- +1 −1 ...ip/src/main/java/org/springframework/integration/ip/tcp/connection/AbstractConnectionFactory.java
- +4 −3 .../main/java/org/springframework/integration/ip/tcp/connection/AbstractServerConnectionFactory.java
- +2 −1 ...rc/main/java/org/springframework/integration/ip/tcp/connection/TcpNioClientConnectionFactory.java
- +2 −1 ...rc/main/java/org/springframework/integration/ip/tcp/connection/TcpNioServerConnectionFactory.java