mirror of
https://github.com/vanitasvitae/Smack.git
synced 2024-11-29 07:22:07 +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
|
// Secure the plain connection
|
||||||
socket = context.getSocketFactory().createSocket(plain,
|
socket = context.getSocketFactory().createSocket(plain,
|
||||||
plain.getInetAddress().getHostAddress(), plain.getPort(), true);
|
plain.getInetAddress().getHostAddress(), plain.getPort(), true);
|
||||||
socket.setSoTimeout(0);
|
|
||||||
socket.setKeepAlive(true);
|
|
||||||
// Initialize the reader and writer with the new secured version
|
// Initialize the reader and writer with the new secured version
|
||||||
initReaderAndWriter();
|
initReaderAndWriter();
|
||||||
// Proceed to do the handshake
|
// Proceed to do the handshake
|
||||||
|
|
Loading…
Reference in a new issue