mirror of https://github.com/apache/activemq.git
Merge pull request #507 from jbonofre/AMQ-7301
[AMQ-7301] Propagate the exception in order to close the connection cleanly
This commit is contained in:
commit
bbb73ec3fc
|
@ -57,15 +57,11 @@ public class StompNIOSSLTransport extends NIOSSLTransport {
|
|||
}
|
||||
|
||||
@Override
|
||||
protected void initializeStreams() {
|
||||
try {
|
||||
codec = new StompCodec(this);
|
||||
super.initializeStreams();
|
||||
if (inputBuffer.position() != 0 && inputBuffer.hasRemaining()) {
|
||||
serviceRead();
|
||||
}
|
||||
} catch (IOException e) {
|
||||
LOGGER.warn("Could not initialize connection from {}: {} ({})", socket.getInetAddress().getHostAddress(), e.getMessage(), e.getCause().getMessage());
|
||||
protected void initializeStreams() throws IOException {
|
||||
codec = new StompCodec(this);
|
||||
super.initializeStreams();
|
||||
if (inputBuffer.position() != 0 && inputBuffer.hasRemaining()) {
|
||||
serviceRead();
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue