From 5df6d0962d56d802d0e1872dc4025f0a627c1276 Mon Sep 17 00:00:00 2001 From: Gary Russell Date: Mon, 14 Jun 2010 00:55:50 +0000 Subject: [PATCH] Increase backlog on ServerSocket in test cases --- .../integration/ip/tcp/SimpleTcpNetOutboundGatewayTests.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/spring-integration-ip/src/test/java/org/springframework/integration/ip/tcp/SimpleTcpNetOutboundGatewayTests.java b/spring-integration-ip/src/test/java/org/springframework/integration/ip/tcp/SimpleTcpNetOutboundGatewayTests.java index fce231bf93..48eb165958 100644 --- a/spring-integration-ip/src/test/java/org/springframework/integration/ip/tcp/SimpleTcpNetOutboundGatewayTests.java +++ b/spring-integration-ip/src/test/java/org/springframework/integration/ip/tcp/SimpleTcpNetOutboundGatewayTests.java @@ -158,7 +158,7 @@ public class SimpleTcpNetOutboundGatewayTests { Thread t = new Thread(new Runnable() { public void run() { try { - ServerSocket ss = ServerSocketFactory.getDefault().createServerSocket(port); + ServerSocket ss = ServerSocketFactory.getDefault().createServerSocket(port, 10); latch1.countDown(); while (true) { Socket s = ss.accept(); @@ -197,7 +197,7 @@ public class SimpleTcpNetOutboundGatewayTests { Thread t = new Thread(new Runnable() { public void run() { try { - ServerSocket ss = ServerSocketFactory.getDefault().createServerSocket(port); + ServerSocket ss = ServerSocketFactory.getDefault().createServerSocket(port, 10); latch1.countDown(); boolean first = true; while (true) {