mirror of
https://github.com/vanitasvitae/Smack.git
synced 2024-12-26 12:37:58 +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