From dff9924a0ca68e02ce8d888f0e084fefcdb9d240 Mon Sep 17 00:00:00 2001 From: jacopo-salamina <32791897+jacopo-salamina@users.noreply.github.com> Date: Tue, 20 Oct 2020 12:19:45 +0200 Subject: [PATCH] WebSocketTransportRegistration: javadoc typo The documentation written for the method WebSocketTransportRegistration.setSendTimeLimit(int timeLimit) mentions that, if no time limit is specified, a default value of 10 seconds is used; however, later on the exact default value employed is incorrectly typed as 10 * 10000 ms, which would result in 100 seconds instead. The javadoc has been updated in order to show the correct value in milliseconds (10 * 1000). --- .../config/annotation/WebSocketTransportRegistration.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/spring-websocket/src/main/java/org/springframework/web/socket/config/annotation/WebSocketTransportRegistration.java b/spring-websocket/src/main/java/org/springframework/web/socket/config/annotation/WebSocketTransportRegistration.java index 78a3b8d1fa..f860aa5f1d 100644 --- a/spring-websocket/src/main/java/org/springframework/web/socket/config/annotation/WebSocketTransportRegistration.java +++ b/spring-websocket/src/main/java/org/springframework/web/socket/config/annotation/WebSocketTransportRegistration.java @@ -92,7 +92,7 @@ public class WebSocketTransportRegistration { * is used by default on Tomcat 8. If you must use blocking IO consider * customizing OS-level TCP settings, for example * {@code /proc/sys/net/ipv4/tcp_retries2} on Linux. - *
The default value is 10 seconds (i.e. 10 * 10000). + *
The default value is 10 seconds (i.e. 10 * 1000). * @param timeLimit the timeout value in milliseconds; the value must be * greater than 0, otherwise it is ignored. */