Set reason for WebSocket CloseStatus.SESSION_NOT_RELIABLE

See gh-29220
This commit is contained in:
Anatolii Zhmaiev
2022-09-29 13:40:10 +03:00
committed by rstoyanchev
parent 27fdf56ed5
commit 1de9426df0

View File

@@ -145,7 +145,8 @@ public final class CloseStatus implements Serializable {
* client that may be done during normal shutdown.
* @since 4.0.3
*/
public static final CloseStatus SESSION_NOT_RELIABLE = new CloseStatus(4500);
public static final CloseStatus SESSION_NOT_RELIABLE = new CloseStatus(4500)
.withReason("Failed to send message within the configured send limit");
private final int code;