From fabfd425f087c8a6e35c552c531d7629fbeeb910 Mon Sep 17 00:00:00 2001 From: Boaz Leskes Date: Tue, 26 Jul 2016 18:04:05 +0200 Subject: [PATCH] remove socket timeout from MockTcpTransport added in b208a7dbaeeb269e6d1e121f46a29cb6b0f8004f --- .../main/java/org/elasticsearch/transport/MockTcpTransport.java | 2 -- 1 file changed, 2 deletions(-) diff --git a/test/framework/src/main/java/org/elasticsearch/transport/MockTcpTransport.java b/test/framework/src/main/java/org/elasticsearch/transport/MockTcpTransport.java index 8a0828794da..c128ee49022 100644 --- a/test/framework/src/main/java/org/elasticsearch/transport/MockTcpTransport.java +++ b/test/framework/src/main/java/org/elasticsearch/transport/MockTcpTransport.java @@ -43,7 +43,6 @@ import java.io.BufferedOutputStream; import java.io.Closeable; import java.io.IOException; import java.io.OutputStream; -import java.io.UncheckedIOException; import java.net.InetSocketAddress; import java.net.ServerSocket; import java.net.Socket; @@ -210,7 +209,6 @@ public class MockTcpTransport extends TcpTransport private void configureSocket(Socket socket) throws SocketException { socket.setTcpNoDelay(TCP_NO_DELAY.get(settings)); - socket.setSoTimeout(15000); ByteSizeValue tcpSendBufferSize = TCP_SEND_BUFFER_SIZE.get(settings); if (tcpSendBufferSize.bytes() > 0) { socket.setSendBufferSize(tcpSendBufferSize.bytesAsInt());