Skip to content

Commit 1de9426

Browse files
Anatolii Zhmaievrstoyanchev
authored andcommitted
Set reason for WebSocket CloseStatus.SESSION_NOT_RELIABLE
See gh-29220
1 parent 27fdf56 commit 1de9426

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

spring-websocket/src/main/java/org/springframework/web/socket/CloseStatus.java

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -145,7 +145,8 @@ public final class CloseStatus implements Serializable {
145145
* client that may be done during normal shutdown.
146146
* @since 4.0.3
147147
*/
148-
public static final CloseStatus SESSION_NOT_RELIABLE = new CloseStatus(4500);
148+
public static final CloseStatus SESSION_NOT_RELIABLE = new CloseStatus(4500)
149+
.withReason("Failed to send message within the configured send limit");
149150

150151

151152
private final int code;

0 commit comments

Comments
 (0)