Don't overwrite SSLSocket settings

SoTimeout defaults to 0 anyways, and keep alive should be
enabled/disabled on the underlying socket.
This commit is contained in:
Florian Schmaus 2014-04-22 22:50:17 +02:00
parent e2bca403e0
commit 4e43292f1d
1 changed files with 0 additions and 2 deletions

View File

@ -711,8 +711,6 @@ public class XMPPTCPConnection extends XMPPConnection {
// Secure the plain connection
socket = context.getSocketFactory().createSocket(plain,
plain.getInetAddress().getHostAddress(), plain.getPort(), true);
socket.setSoTimeout(0);
socket.setKeepAlive(true);
// Initialize the reader and writer with the new secured version
initReaderAndWriter();
// Proceed to do the handshake