Leonard Siu opened SPR-12820 and commented
According to the Stomp Specification (http://stomp.github.io/stomp-specification-1.1.html#Connecting):
The server can reject any connection attempt. The server SHOULD respond back with an ERROR frame listing why the connection was rejected and then close the connection.
However, at line# 402 of StompBrokerRelayMessageHandler class where the code simply log and error, ignores and return:
SimpMessageType messageType = SimpMessageHeaderAccessor.getMessageType(message.getHeaders());
if (logger.isErrorEnabled() && SimpMessageType.CONNECT.equals(messageType)) {
logger.error("Broker not active. Ignoring " + message);
}
else if (logger.isDebugEnabled()) {
logger.debug("Broker not active. Ignoring " + message);
}
return;
Affects: 4.1.5
Attachments:
Referenced from: commits 4886edd