mirror of
https://codeberg.org/Mercury-IM/Smack
synced 2024-11-22 14:22:05 +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:
parent
e2bca403e0
commit
4e43292f1d
1 changed files with 0 additions and 2 deletions
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue