Skip to content

Commit 81eb324

Browse files
committed
Minor improvements.
1 parent e35bde5 commit 81eb324

File tree

2 files changed

+10
-4
lines changed

2 files changed

+10
-4
lines changed

java-components/domain-proxy/common/src/main/java/com/redhat/hacbs/domainproxy/common/CommonIOUtil.java

Lines changed: 8 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -90,10 +90,14 @@ public static Runnable createChannelToChannelBiDirectionalHandler(final int byte
9090
try {
9191
final String leftChannelName = leftChannel.getRemoteAddress().getClass().getSimpleName();
9292
final String rightChannelName = rightChannel.getRemoteAddress().getClass().getSimpleName();
93-
LOG.infof("Read %d total bytes from % channel to %s channel", leftChannelName, rightChannelName, bytesReadLeft);
94-
LOG.infof("Read %d total bytes from % channel to %s channel", rightChannelName, leftChannelName, bytesReadRight);
95-
LOG.infof("Wrote %d total bytes from % channel to %s channel", leftChannelName, rightChannelName, bytesWrittenLeft);
96-
LOG.infof("Wrote %d total bytes from % channel to %s channel", rightChannelName, leftChannelName, bytesWrittenRight);
93+
LOG.infof("Read %d total bytes from % channel to %s channel", leftChannelName, rightChannelName,
94+
bytesReadLeft);
95+
LOG.infof("Read %d total bytes from % channel to %s channel", rightChannelName, leftChannelName,
96+
bytesReadRight);
97+
LOG.infof("Wrote %d total bytes from % channel to %s channel", leftChannelName, rightChannelName,
98+
bytesWrittenLeft);
99+
LOG.infof("Wrote %d total bytes from % channel to %s channel", rightChannelName, leftChannelName,
100+
bytesWrittenRight);
97101
} catch (IOException e) {
98102
throw new RuntimeException(e);
99103
}

java-components/domain-proxy/try-replicating-read-hang.sh

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,8 @@
22

33
DIR="$( cd "$( dirname "$0" )" && pwd )"
44

5+
export PROXY_TARGET_WHITELIST=localhost
6+
57
server/target/domain-proxy-server-999-SNAPSHOT-runner &
68
server_pid=$!
79

0 commit comments

Comments
 (0)