Thanks. I understood what polling means. If I don't do the 'polling', can I ignore 'polling' attribute of session creation response ?
But in Overactivity section, It seems that client needs to watch 'polling' attribute to avoid overactivity. http://xmpp.org/extensions/xep-0124.html#overactive Quote: If during any period the client sends a sequence of new requests equal in length to the number specified by the 'requests' attribute, and if the connection manager has not yet responded to any of the requests, and if the last request was empty and did not include either a 'pause' attribute or a 'type' attribute set to "terminate", and if the last two requests arrived within a period shorter than the number of seconds specified by the 'polling' attribute in the session creation response, then the connection manager SHOULD consider that the client is making requests more frequently than it was permitted and terminate the HTTP session and return a 'policy-violation' terminal binding error to the client. Note: the behavior for Polling Sessions is slightly different. [email protected] wrote on 2012/02/20 20:39:25: > On 20 February 2012 10:41, <[email protected]> wrote: > > Hi, > > > > I want to ask you about the right definistion of "polling" in XEP-0124. > > > > "polling" is written in 12.Polling Session below. > > > >>> If a session will use "polling", the connection manager SHOULD specify a > > higher than normal value for the 'inactivity' attribute in its session > > creation response. > >>> The increase SHOULD be greater than the value it specifies for the > > 'polling' attribute. > > > > What "polling" mean? > > I want to know when should I treat polling attribute of session creation > > response. > > > > > > "polling" means , > > > > > > (2) setting the values of the 'wait' and/or 'hold' attributes in its > > session creation request to "0", > > and then "poll" the connection manager at regular intervals throughout the > > session for payloads it might have received from the server ? > > > For your question, it means only this. > Regards, > Matthew > _______________________________________________ > JDev mailing list > Info: http://mail.jabber.org/mailman/listinfo/jdev > Unsubscribe: [email protected] > _______________________________________________ _______________________________________________ JDev mailing list Info: http://mail.jabber.org/mailman/listinfo/jdev Unsubscribe: [email protected] _______________________________________________
