INT-3894: Polishing

Remove IPv4 from build.gradle.
Fix race for ackPort.
This commit is contained in:
Gary Russell
2015-11-24 11:35:43 -05:00
parent b4218982da
commit c0ca5a9b89
2 changed files with 6 additions and 4 deletions

View File

@@ -401,10 +401,6 @@ project('spring-integration-ip') {
compile project(":spring-integration-core")
testCompile project(":spring-integration-stream")
}
test {
jvmArgs '-Djava.net.preferIPv4Stack=true' // Multicast on OS X
}
}
project('spring-integration-jdbc') {

View File

@@ -256,6 +256,12 @@ public class UnicastSendingMessageHandler extends
if (!this.ackThreadRunning) {
synchronized(this) {
if (!this.ackThreadRunning) {
try {
getSocket();
}
catch (IOException e) {
logger.error("Error creating socket", e);
}
ackLatch = new CountDownLatch(1);
this.taskExecutor.execute(this);
try {