Hi all,

Thank you for your responses and suggestions.

I have some more information on this issue: I took out all the code
that retrieves the contact list and sets the status (which would
trigger availability information), and the server still closes the
connection gracefully (i.e. by sending </stream:stream>).  I even took
out the library I was using to handle parsing the XML; I just read it
in (in a buffered fashion), and spit it out.  So, it seems as though -
on my phone at least (not in debug mode on my computer!) - as soon as
I finish sending stanzas one after another, the server closes the
connection.  What's up with that?

Oh, and the server is Google Talk.  I'm using SSL.

Here's what the server sends to me:

<stream:stream from="gmail.com" id="2823903EEAA22D0D"
xmlns:stream="http://etherx.jabber.org/streams"; xmlns="jabber:client">
  <iq type="result">
    <query xmlns="jabber:iq:auth">
      <username/>
      <resource/>
      <password/>
    </query>
  </iq>
  <iq type="result"/>
</stream:stream>

Thanks!
Sean

On Jan 13, 2008 3:38 PM, Tomasz Sterna <[EMAIL PROTECTED]> wrote:
> On So, 2008-01-12 at 20:22 -0600, Sean Gilbertson wrote:
> > So here's my current problem: When I send a <presence><status>My
> > status here!</status></presence> tag to the server, it immediately
> > sends me a <iq/> and then, immediately following that, a
> > </stream:stream>, which closes the connection.  My input loop then
> > closes, and the whole thing is kaput.
>
> It would be good to see the actual stream dump - what did you send, and
> what came in.
>
> Something like my client dumps on debug console:
>
> OUT:
> <iq to='chrome.pl' type='get' id='iq731'>
> <query xmlns='http://jabber.org/protocol/disco#info'/>
> </iq>
>
> IN:
> <iq xmlns='jabber:client' id='iq731' from='chrome.pl'
> to='[EMAIL PROTECTED]/VAIO' type='result'>
> <query xmlns='http://jabber.org/protocol/disco#info'>
> <identity name='Chrome XMPP server' type='im' category='server'/>
> <feature var='jabber:iq:private'/>
> <feature var='presence'/>
> <feature var='jabber:iq:time'/>
> <feature var='urn:xmpp:ping'/>
> <feature var='http://jabber.org/protocol/vacation'/>
> <feature var='urn:xmpp:time'/>
> <feature var='urn:xmpp:blocking'/>
> <feature var='vcard-temp'/>
> <feature var='jabber:iq:version'/>
> <feature var='message'/>
> <feature var='msgoffline'/>
> <feature var='jabber:iq:privacy'/>
> <feature var='http://jabber.org/protocol/amp'/>
> <feature var='jabber:iq:roster'/>
> <feature var='iq'/>
> <feature var='jabber:iq:last'/>
> <feature var='http://jabber.org/protocol/disco'/>
> <x xmlns='jabber:x:data' type='result'>
> <field type='hidden' var='FORM_TYPE'>
> <value>http://jabber.org/network/serverinfo</value>
> </field>
> <field var='abuse-addresses'>
> <value>mailto:[EMAIL PROTECTED]</value>
> </field>
> <field var='admin-addresses'>
> <value>mailto:[EMAIL PROTECTED]</value>
> <value>xmpp:[EMAIL PROTECTED]</value>
> </field>
> <field var='sales-addresses'>
> <value>mailto:[EMAIL PROTECTED]</value>
> </field>
> <field var='support-addresses'>
> <value>xmpp:chrome.pl</value>
> </field>
> </x>
> </query>
> </iq>
>
>
>
> --
>   /\_./o__ Tomasz Sterna
>  (/^/(_^^' http://www.xiaoka.com/
> ._.(_.)_   im:[EMAIL PROTECTED]
>
>



-- 
"Courage in an untrained mind leads to cruelty, and in a trained mind
it leads to hope and compassion." ~ P.J. Saher

Reply via email to