1
0
Fork 0
mirror of https://codeberg.org/Mercury-IM/Smack synced 2024-11-16 12:12:06 +01:00

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

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