Skip to content

Commit 2720301

Browse files
Merge branch 'laststem-missed-heartbeat-ex-host-description'
2 parents 8044029 + 0c933cb commit 2720301

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/main/java/com/rabbitmq/client/impl/AMQConnection.java

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -741,8 +741,8 @@ private void readFrame(Frame frame) throws IOException {
741741

742742
/** private API */
743743
public void handleHeartbeatFailure() {
744-
Exception ex = new MissedHeartbeatException("Heartbeat missing with heartbeat = " +
745-
_heartbeat + " seconds");
744+
Exception ex = new MissedHeartbeatException("Detected missed server heartbeats, heartbeat interval: " +
745+
_heartbeat + " seconds, RabbitMQ node hostname: " + this.getHostAddress());
746746
try {
747747
_exceptionHandler.handleUnexpectedConnectionDriverException(this, ex);
748748
shutdown(null, false, ex, true);
@@ -837,7 +837,7 @@ private void handleSocketTimeout() throws SocketTimeoutException {
837837
// of the heartbeat setting in setHeartbeat above.
838838
if (++_missedHeartbeats > (2 * 4)) {
839839
throw new MissedHeartbeatException("Heartbeat missing with heartbeat = " +
840-
_heartbeat + " seconds");
840+
_heartbeat + " seconds, for " + this.getHostAddress());
841841
}
842842
}
843843

0 commit comments

Comments
 (0)