mirror of
https://codeberg.org/Mercury-IM/Smack
synced 2024-11-27 00:32:07 +01:00
SMACK-377 Avoid an unnecessary DNS request by using directly the, at this point known IP, instead of using the hostname as argument for the new socket.
git-svn-id: http://svn.igniterealtime.org/svn/repos/smack/trunk@13420 b35dd754-fafc-0310-a699-88a17e54d16e
This commit is contained in:
parent
c76ed51541
commit
43619de7aa
1 changed files with 1 additions and 1 deletions
|
@ -832,7 +832,7 @@ public class XMPPConnection extends Connection {
|
||||||
Socket plain = socket;
|
Socket plain = socket;
|
||||||
// Secure the plain connection
|
// Secure the plain connection
|
||||||
socket = context.getSocketFactory().createSocket(plain,
|
socket = context.getSocketFactory().createSocket(plain,
|
||||||
plain.getInetAddress().getHostName(), plain.getPort(), true);
|
plain.getInetAddress().getHostAddress(), plain.getPort(), true);
|
||||||
socket.setSoTimeout(0);
|
socket.setSoTimeout(0);
|
||||||
socket.setKeepAlive(true);
|
socket.setKeepAlive(true);
|
||||||
// Initialize the reader and writer with the new secured version
|
// Initialize the reader and writer with the new secured version
|
||||||
|
|
Loading…
Reference in a new issue