Socket#shutdownOutput in ServerImpl leads to UnsupportedOperationException on SSLSocket.
@@ -57,6 +57,7 @@ import java.util.concurrent.LinkedBlockingQueue;
import java.util.concurrent.TimeUnit;
import java.util.concurrent.atomic.AtomicReference;
import javax.net.ssl.SSLException;
+import javax.net.ssl.SSLSocket;
import org.apache.ignite.Ignite;
import org.apache.ignite.IgniteCheckedException;
import org.apache.ignite.IgniteException;
@@ -5769,6 +5770,7 @@ class ServerImpl extends TcpDiscoveryImpl {
spi.writeToSocket(sock, res, timeoutHelper.nextTimeoutChunk(spi.getSocketTimeout()));
+ if (!(sock instanceof SSLSocket))
sock.shutdownOutput();
if (log.isInfoEnabled())
