<div dir="ltr">Hi,<div><br></div><div>I ran a test on iOS simulator on mac with Network Link Conditioner with "EDGE" profile</div><div><br></div><div>Downlink (Bandwidth): 240kbs</div><div>Uplink (Bandwidth): 200kbps.</div><div><br></div><div>I observe extremely slow connection/authentication time ranging from 15 to 45 secs.</div><div><br></div><div>Is there a way I can reduce connection establishment time? Please provide pointers.</div><div> </div><div>I have pasted the client logs below.</div><div><br></div><div>------------------------------------------------iOS Simulator LOGS-----------------------------</div><div><br></div><div>







<p class="gmail-p1"><span class="gmail-s1">2016-11-13 17:24:05:397  SEND: <?xml version='1.0'?></span></p>
<p class="gmail-p1"><span class="gmail-s1">2016-11-13 17:24:05:398  SEND: <stream:stream xmlns='jabber:client' xmlns:stream='<a href="http://etherx.jabber.org/streams">http://etherx.jabber.org/streams</a>' version='1.0' to='<a href="http://dev.example.com">dev.example.com</a>'></span></p>
<p class="gmail-p1"><span class="gmail-s1">2016-11-13 17:24:08:696  RECV: <stream:stream xmlns="jabber:client" xmlns:stream="<a href="http://etherx.jabber.org/streams">http://etherx.jabber.org/streams</a>" id="" from="<a href="http://dev.example.com">dev.example.com</a>" version="1.0" stream1:lang="en"/></span></p>
<p class="gmail-p1"><span class="gmail-s1">2016-11-13 17:24:11:535  RECV: <stream:features xmlns:stream="<a href="http://etherx.jabber.org/streams">http://etherx.jabber.org/streams</a>"><c xmlns="<a href="http://jabber.org/protocol/caps">http://jabber.org/protocol/caps</a>" hash="sha-1" node="<a href="http://www.process-one.net/en/ejabberd/">http://www.process-one.net/en/ejabberd/</a>" ver=""/><register xmlns="<a href="http://jabber.org/features/iq-register">http://jabber.org/features/iq-register</a>"/><starttls xmlns="urn:ietf:params:xml:ns:xmpp-tls"/><mechanisms xmlns="urn:ietf:params:xml:ns:xmpp-sasl"><mechanism>DIGEST-MD5</mechanism><mechanism>SCRAM-SHA-1</mechanism><mechanism>PLAIN</mechanism><mechanism>X-OAUTH2</mechanism></mechanisms></stream:features></span></p>
<p class="gmail-p1"><span class="gmail-s1">2016-11-13 17:24:11:536  SEND: <starttls xmlns='urn:ietf:params:xml:ns:xmpp-tls'/></span></p>
<p class="gmail-p1"><span class="gmail-s1">2016-11-13 17:24:13:667  RECV: <proceed xmlns="urn:ietf:params:xml:ns:xmpp-tls"/></span></p>
<p class="gmail-p1"><span class="gmail-s1">2016-11-13 17:24:13:667  SEND: <stream:stream xmlns='jabber:client' xmlns:stream='<a href="http://etherx.jabber.org/streams">http://etherx.jabber.org/streams</a>' version='1.0' to='<a href="http://dev.example.com">dev.example.com</a>'></span></p>
<p class="gmail-p1"><span class="gmail-s1">2016-11-13 17:24:27:824  RECV: <stream:stream xmlns="jabber:client" xmlns:stream="<a href="http://etherx.jabber.org/streams">http://etherx.jabber.org/streams</a>" id="" from="<a href="http://dev.example.com">dev.example.com</a>" version="1.0" stream1:lang="en"/></span></p>
<p class="gmail-p1"><span class="gmail-s1">2016-11-13 17:24:27:841  RECV: <stream:features xmlns:stream="<a href="http://etherx.jabber.org/streams">http://etherx.jabber.org/streams</a>"><c xmlns="<a href="http://jabber.org/protocol/caps">http://jabber.org/protocol/caps</a>" hash="sha-1" node="<a href="http://www.process-one.net/en/ejabberd/">http://www.process-one.net/en/ejabberd/</a>" ver="AnudLoQ6YzangFOMngKxYf3sht0="/><register xmlns="<a href="http://jabber.org/features/iq-register">http://jabber.org/features/iq-register</a>"/><mechanisms xmlns="urn:ietf:params:xml:ns:xmpp-sasl"><mechanism>DIGEST-MD5</mechanism><mechanism>SCRAM-SHA-1</mechanism><mechanism>PLAIN</mechanism><mechanism>X-OAUTH2</mechanism></mechanisms></stream:features></span></p>
<p class="gmail-p1"><span class="gmail-s1">2016-11-13 17:24:27:842 SEND: <auth xmlns="urn:ietf:params:xml:ns:xmpp-sasl" mechanism="SCRAM-SHA-1">TY=</auth></span></p>
<p class="gmail-p1"><span class="gmail-s1">2016-11-13 17:24:27:843  XMPPCapabilities: Unable to hash capabilites (in order to send in presense element)</span></p>
<p class="gmail-p1"><span class="gmail-s1">Perhaps there are duplicate advertised features...</span></p>
<p class="gmail-p1"><span class="gmail-s1"><query xmlns="<a href="http://jabber.org/protocol/disco#info">http://jabber.org/protocol/disco#info</a>"></span></p>
<p class="gmail-p1"><span class="gmail-s1">  <feature var="<a href="http://jabber.org/protocol/disco#info">http://jabber.org/protocol/disco#info</a>"/></span></p>
<p class="gmail-p1"><span class="gmail-s1">  <feature var="<a href="http://jabber.org/protocol/caps">http://jabber.org/protocol/caps</a>"/></span></p>
<p class="gmail-p1"><span class="gmail-s1">  <feature var="<a href="http://jabber.org/protocol/bytestreams">http://jabber.org/protocol/bytestreams</a>"/></span></p>
<p class="gmail-p1"><span class="gmail-s1">  <feature var="<a href="http://jabber.org/protocol/si">http://jabber.org/protocol/si</a>"/></span></p>
<p class="gmail-p1"><span class="gmail-s1">  <feature var="<a href="http://jabber.org/protocol/si/profile/file-transfer">http://jabber.org/protocol/si/profile/file-transfer</a>"/></span></p>
<p class="gmail-p1"><span class="gmail-s1">  <feature var="<a href="http://jabber.org/protocol/muc">http://jabber.org/protocol/muc</a>"/></span></p>
<p class="gmail-p1"><span class="gmail-s1">  <feature var="<a href="http://jabber.org/protocol/chatstates">http://jabber.org/protocol/chatstates</a>"/></span></p>
<p class="gmail-p1"><span class="gmail-s1">  <feature var="<a href="http://jabber.org/protocol/muc">http://jabber.org/protocol/muc</a>"/></span></p>
<p class="gmail-p1"><span class="gmail-s1"></query></span></p>
<p class="gmail-p1"><span class="gmail-s1">2016-11-13 17:24:31:237  RECV: <challenge xmlns="urn:ietf:params:xml:ns:xmpp-sasl">Dk2</challenge></span></p>
<p class="gmail-p1"><span class="gmail-s1">2016-11-13 17:24:31:246  SEND: <response xmlns="urn:ietf:params:xml:ns:xmpp-sasl">PQ==</response></span></p>
<p class="gmail-p1"><span class="gmail-s1">2016-11-13 17:24:33:007  RECV: <success xmlns="urn:ietf:params:xml:ns:xmpp-sasl">c9</success></span></p>
<p class="gmail-p1"><span class="gmail-s1">2016-11-13 17:24:33:007  SEND: <stream:stream xmlns='jabber:client' xmlns:stream='<a href="http://etherx.jabber.org/streams">http://etherx.jabber.org/streams</a>' version='1.0' to='<a href="http://dev.example.com">dev.example.com</a>'></span></p>
<p class="gmail-p1"><span class="gmail-s1">2016-11-13 17:24:35:937  RECV: <stream:stream xmlns="jabber:client" xmlns:stream="<a href="http://etherx.jabber.org/streams">http://etherx.jabber.org/streams</a>" id="" from="<a href="http://dev.example.com">dev.example.com</a>" version="1.0" stream1:lang="en"/></span></p>
<p class="gmail-p1"><span class="gmail-s1">2016-11-13 17:24:35:954  RECV: <stream:features xmlns:stream="<a href="http://etherx.jabber.org/streams">http://etherx.jabber.org/streams</a>"><c xmlns="<a href="http://jabber.org/protocol/caps">http://jabber.org/protocol/caps</a>" hash="sha-1" node="<a href="http://www.process-one.net/en/ejabberd/">http://www.process-one.net/en/ejabberd/</a>" ver="t0="/><bind xmlns="urn:ietf:params:xml:ns:xmpp-bind"/><session xmlns="urn:ietf:params:xml:ns:xmpp-session"><optional/></session><sm xmlns="urn:xmpp:sm:2"/><sm xmlns="urn:xmpp:sm:3"/><csi xmlns="urn:xmpp:csi:0"/></stream:features></span></p>
<p class="gmail-p1"><span class="gmail-s1">2016-11-13 17:24:35:955  SEND: <iq type="set" id=""><bind xmlns="urn:ietf:params:xml:ns:xmpp-bind"><resource>iPhone</resource></bind></iq></span></p>
<p class="gmail-p1"><span class="gmail-s1">2016-11-13 17:24:42:493  RECV: <iq xmlns="jabber:client" id="" type="result"><bind xmlns="urn:ietf:params:xml:ns:xmpp-bind"><jid><a href="http://xyz@dev.example.com/iPhone">xyz@dev.example.com/iPhone</a></jid></bind></iq></span></p>
<p class="gmail-p1"><span class="gmail-s1">2016-11-13 17:24:42:494  SEND: <iq type="set" id=""><session xmlns="urn:ietf:params:xml:ns:xmpp-session"/></iq></span></p>
<p class="gmail-p1"><span class="gmail-s1">2016-11-13 17:24:45:208  RECV: <iq xmlns="jabber:client" type="result" id=""/></span></p></div></div>