Quantcast
Channel: Ignite Realtime: Message List
Viewing all articles
Browse latest Browse all 12000

Re: smack-4.1.0-beta2: Timeout on publish PayloadItem containing JSON

$
0
0

Here are the results from  SmackConfiguration.DEBUG_ENABLED = true;

  • debug window contained these tabs Raw Sent Packets,  Raw Received Packets, their contents is below: 
  • no exception encountered, I will now test to determine json payload upper bound (in bytes) per adjacent discussion on this topic
  • trace below is with small json payload instead, where Node is set up to have payload and have persistence.
  • see attached json exemplar

 

Raw Sent Packets

<stream:stream xmlns='jabber:client' to='bop.enernoc.net' xmlns:stream='http://etherx.jabber.org/streams' version='1.0'>

<auth xmlns='urn:ietf:params:xml:ns:xmpp-sasl' mechanism='SCRAM-SHA-1'>biwsbj1wdWIxLHI9J3BDcEw1JylkUVMzJH0lYGVIMClYbG99fUA5Jz5 JeEg=</auth>

<response xmlns='urn:ietf:params:xml:ns:xmpp-sasl'>Yz1iaXdzLHI9J3BDcEw1JylkUVMzJH0lYGVIMC lYbG99fUA5Jz5JeEhsWE54T0VyK3RJUnRxYVRRZDlMc3J3PT0scD1LZzUyUm92YTdnQVd4Nm9Cek4vQV lVdDhlTTg9</response>

<stream:stream xmlns='jabber:client' to='bop.enernoc.net' xmlns:stream='http://etherx.jabber.org/streams' version='1.0'>

<iq id='4XM9a-1' type='set'><bind xmlns='urn:ietf:params:xml:ns:xmpp-bind'><resource>Smack</resource></bind></iq>

<iq id='4XM9a-3' type='set'><session xmlns='urn:ietf:params:xml:ns:xmpp-session'/></iq>

<iq id='4XM9a-5' type='get'><query xmlns='jabber:iq:roster'></query></iq>

<presence id='4XM9a-7'></presence>

<iq to='pubsub.bop.enernoc.net' id='4XM9a-9' type='get'><query xmlns='http://jabber.org/protocol/disco#info' node='Standford University'></query></iq>

<iq to='pubsub.bop.enernoc.net' id='4XM9a-11' type='set'><pubsub xmlns='http://jabber.org/protocol/pubsub'><create node='Standford University'/></pubsub></iq>

<iq to='pubsub.bop.enernoc.net' id='4XM9a-13' type='get'><query xmlns='http://jabber.org/protocol/disco#info' node='Standford University'></query></iq>

<iq to='pubsub.bop.enernoc.net' id='4XM9a-15' type='set'><pubsub xmlns='http://jabber.org/protocol/pubsub'><publish node='Standford University'><item id='jace-payload-id-64ebf6bd-7443-407c-938b-10d41fc35e04' node='100'><json xmlns='urn:xmpp:json:0'>{"glossary":{"title":"example glossary","GlossDiv":{"GlossList":{"GlossEntry":{"SortAs":"SGML","GlossDef":{"G lossSeeAlso":["GML","XML"],"para":"A meta-markup language, used to create markup languages such as DocBook."},"GlossSee":"markup","GlossTerm":"Standard Generalized Markup Language","ID":"SGML","Acronym":"SGML","Abbrev":"ISO 8879:1986"}},"title":"S"}}}</json></item></publish></pubsub></iq>

<iq to='pubsub.bop.enernoc.net' id='4XM9a-17' type='get'><pubsub xmlns='http://jabber.org/protocol/pubsub'><items node='Standford University' max_items='1'/></pubsub></iq>

 

Raw Received Packets

<?xml version='1.0'?><stream:stream xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams' id='592704008' from='bop.enernoc.net' version='1.0' xml:lang='en'><stream:features><starttls xmlns='urn:ietf:params:xml:ns:xmpp-tls'/><mechanisms xmlns='urn:ietf:params:xml:ns:xmpp-sasl'><mechanism>PLAIN</mechanism><mechanism >DIGEST-MD5</mechanism><mechanism>SCRAM-SHA-1</mechanism></mechanisms><c xmlns='http://jabber.org/protocol/caps' hash='sha-1' node='http://www.process-one.net/en/ejabberd/' ver='DksZ6FHJJWRiYER6w6zl0DGK7+Y='/><register xmlns='http://jabber.org/features/iq-register'/></stream:features>

<challenge xmlns='urn:ietf:params:xml:ns:xmpp-sasl'>cj0ncENwTDUnKWRRUzMkfSVgZUgwKVhsb319QD knPkl4SGxYTnhPRXIrdElSdHFhVFFkOUxzcnc9PSxzPTRnTVlCUDdESVc0c0krSXVjLzY5OUE9PSxpPT QwOTY=</challenge>

<success xmlns='urn:ietf:params:xml:ns:xmpp-sasl'>dj1hNmtROHpRU1pSdVkwUklUK3BkaFdoQkw2eW s9</success>

<?xml version='1.0'?><stream:stream xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams' id='3232080429' from='bop.enernoc.net' version='1.0' xml:lang='en'>

<stream:features><bind xmlns='urn:ietf:params:xml:ns:xmpp-bind'/><session xmlns='urn:ietf:params:xml:ns:xmpp-session'/><sm xmlns='urn:xmpp:sm:2'/><sm xmlns='urn:xmpp:sm:3'/><c xmlns='http://jabber.org/protocol/caps' hash='sha-1' node='http://www.process-one.net/en/ejabberd/' ver='DksZ6FHJJWRiYER6w6zl0DGK7+Y='/><register xmlns='http://jabber.org/features/iq-register'/></stream:features>

<iq id='4XM9a-1' type='result'><bind xmlns='urn:ietf:params:xml:ns:xmpp-bind'><jid>pub1@bop.enernoc.net/Smack</jid></bind></iq>

<iq type='result' id='4XM9a-3'/>

<iq from='pub1@bop.enernoc.net' to='pub1@bop.enernoc.net/Smack' id='4XM9a-5' type='result'><query xmlns='jabber:iq:roster'/></iq>

<presence from='pub1@bop.enernoc.net/Smack' to='pub1@bop.enernoc.net/Smack' id='4XM9a-7'/>

<iq from='pubsub.bop.enernoc.net' to='pub1@bop.enernoc.net/Smack' type='error' id='4XM9a-9'><query xmlns='http://jabber.org/protocol/disco#info' node='Standford University'/><error code='404' type='cancel'><item-not-found xmlns='urn:ietf:params:xml:ns:xmpp-stanzas'/></error></iq>

<iq from='pubsub.bop.enernoc.net' to='pub1@bop.enernoc.net/Smack' id='4XM9a-11' type='result'><pubsub xmlns='http://jabber.org/protocol/pubsub'><create node='Standford University'/></pubsub></iq>

<iq from='pubsub.bop.enernoc.net' to='pub1@bop.enernoc.net/Smack' id='4XM9a-13' type='result'><query xmlns='http://jabber.org/protocol/disco#info' node='Standford University'><identity category='pubsub' type='leaf'/><feature var='http://jabber.org/protocol/pubsub'/><feature var='http://jabber.org/protocol/pubsub#access-open'/><feature var='http://jabber.org/protocol/pubsub#access-presence'/><feature var='http://jabber.org/protocol/pubsub#access-whitelist'/><feature var='http://jabber.org/protocol/pubsub#collections'/><feature var='http://jabber.org/protocol/pubsub#config-node'/><feature var='http://jabber.org/protocol/pubsub#create-and-configure'/><feature var='http://jabber.org/protocol/pubsub#item-ids'/><feature var='http://jabber.org/protocol/pubsub#last-published'/><feature var='http://jabber.org/protocol/pubsub#member-affiliation'/><feature var='http://jabber.org/protocol/pubsub#presence-notifications'/><feature var='http://jabber.org/protocol/pubsub#presence-subscribe'/><feature var='http://jabber.org/protocol/pubsub#publisher-affiliation'/><feature var='http://jabber.org/protocol/pubsub#retrieve-default'/><feature var='http://jabber.org/protocol/pubsub#create-nodes'/><feature var='http://jabber.org/protocol/pubsub#auto-create'/><feature var='http://jabber.org/protocol/pubsub#access-authorize'/><feature var='http://jabber.org/protocol/pubsub#delete-nodes'/><feature var='http://jabber.org/protocol/pubsub#delete-items'/><feature var='http://jabber.org/protocol/pubsub#get-pending'/><feature var='http://jabber.org/protocol/pubsub#instant-nodes'/><feature var='http://jabber.org/protocol/pubsub#manage-subscriptions'/><feature var='http://jabber.org/protocol/pubsub#modify-affiliations'/><feature var='http://jabber.org/protocol/pubsub#multi-subscribe'/><feature var='http://jabber.org/protocol/pubsub#outcast-affiliation'/><feature var='http://jabber.org/protocol/pubsub#persistent-items'/><feature var='http://jabber.org/protocol/pubsub#publish'/><feature var='http://jabber.org/protocol/pubsub#purge-nodes'/><feature var='http://jabber.org/protocol/pubsub#retract-items'/><feature var='http://jabber.org/protocol/pubsub#retrieve-affiliations'/><feature var='http://jabber.org/protocol/pubsub#retrieve-items'/><feature var='http://jabber.org/protocol/pubsub#retrieve-subscriptions'/><feature var='http://jabber.org/protocol/pubsub#subscribe'/><feature var='http://jabber.org/protocol/pubsub#subscription-notifications'/><feature var='http://jabber.org/protocol/pubsub#subscription-options'/><x xmlns='jabber:x:data' type='result'><field var='FORM_TYPE' type='hidden'><value>http://jabber.org/network/serverinfo</value></field></x></query></iq>

<iq from='pubsub.bop.enernoc.net' to='pub1@bop.enernoc.net/Smack' id='4XM9a-15' type='result'><pubsub xmlns='http://jabber.org/protocol/pubsub'><publish node='Standford University'><item id='jace-payload-id-64ebf6bd-7443-407c-938b-10d41fc35e04'/></publish></pubsub>< /iq>

<iq from='pubsub.bop.enernoc.net' to='pub1@bop.enernoc.net/Smack' id='4XM9a-17' type='result'><pubsub xmlns='http://jabber.org/protocol/pubsub'><items node='Standford University'><item id='jace-payload-id-64ebf6bd-7443-407c-938b-10d41fc35e04'><json xmlns='urn:xmpp:json:0'>{&quot;glossary&quot;:{&quot;title&quot;:&quot;example glossary&quot;,&quot;GlossDiv&quot;:{&quot;GlossList&quot;:{&quot;GlossEntry&qu ot;:{&quot;SortAs&quot;:&quot;SGML&quot;,&quot;GlossDef&quot;:{&quot;GlossSeeAls o&quot;:[&quot;GML&quot;,&quot;XML&quot;],&quot;para&quot;:&quot;A meta-markup language, used to create markup languages such as DocBook.&quot;},&quot;GlossSee&quot;:&quot;markup&quot;,&quot;GlossTerm&quot;:& quot;Standard Generalized Markup Language&quot;,&quot;ID&quot;:&quot;SGML&quot;,&quot;Acronym&quot;:&quot;SGML&q uot;,&quot;Abbrev&quot;:&quot;ISO 8879:1986&quot;}},&quot;title&quot;:&quot;S&quot;}}}</json></item></items></pub sub></iq>


Viewing all articles
Browse latest Browse all 12000

Trending Articles