From: Cheng, S. <shi...@gm...> - 2010-07-13 09:58:54
|
BTW, subscriptions of "self._receivers" are all "both" Best Regards. 程时睿 CHENG Shirui - - - - - Healthy and Happy Everyday! - - - - - const char* const GuiGui = "mon amour et l'unique"; On Tue, Jul 13, 2010 at 17:18, Cheng, Shirui <shi...@gm...> wrote: > Hi, > > I wrote a simple bot in the hope of serving as a conference bot: which > means passing text from one user to others in a certain group. > > while sending, my code is: > >> * def _sendToOthers(self, frm, bdy):* >> >> * self._debug('~~ %s: %s'%(frm, bdy), 'msgCB')* >> >> * self._receiversLock.acquire()* >> >> * for contact in self._receivers:* >> >> * if frm != contact:* >> >> * msg = protocol.Message(to = contact, body = '<%s>: >>> %s'%(frm, bdy), typ = 'chat')* >> >> * self._client.send(msg)* >> >> * self._receiversLock.release()* >> >> > for the first few messages, it worked fine, but after certain amount of > message, gtalk server returned with following error: > >> *Jul 13 17:12:43 DEBUG: socket sent <message to=" >>> shi...@gm..." type="chat" id="F19F7392ECE11AEE_133">* >> >> * <body><xx...@gm... <lt%3B...@gm...>>: 1</body>* >> >> * </message>* >> >> *Jul 13 17:12:43 DEBUG: socket got <message to=" >>> yy...@gm.../EA61B980" type="error" id="F19F7392ECE11AEE_133" from=" >>> shi...@gm...">* >> >> * <body><xx...@gm... <lt%3B...@gm...>>: 1</body>* >> >> * <**error **code="503" type="cancel">* >> >> * <service-unavailable xmlns="urn:ietf:params:xml:ns:xmpp-stanzas"/>* >> >> * </error>* >> >> * </message>* >> >> *Jul 13 17:12:47 DEBUG: socket got <message to=" >>> yy...@gm.../EA61B980" type="chat" id="F19F7392ECE11AEE_134" >>> iconset="classic" from="xx...@gm.../gmail.C7747B68">* >> >> * <body>2</body>* >> >> * <met:google-mail-signature >>> xmlns:met="google:metadata">Skx5zPxRXfU4X0DBUyy9w0PEmVk</met:google-mail-signature> >>> * >> >> * <cha:active xmlns:cha="http://jabber.org/protocol/chatstates"/>* >> >> * <nos:x value="disabled" xmlns:nos="google:nosave"/>* >> >> * <arc:record otr="false" xmlns:arc="http://jabber.org/protocol/archive >>> "/>* >> >> * </message>* >> >> *Jul 13 17:12:47 DEBUG: socket sent <message to=" >>> shi...@gm..." type="chat" id="F19F7392ECE11AEE_134">* >> >> * <body><xx...@gm... <lt%3B...@gm...>>: 2</body>* >> >> * </message>* >> >> *Jul 13 17:12:47 DEBUG: socket got <message to=" >>> yy...@gm.../EA61B980" type="error" id="F19F7392ECE11AEE_134" from=" >>> shi...@gm...">* >> >> * <body><xx...@gm... <lt%3B...@gm...>>: 2</body>* >> >> * <**error **code="503" type="cancel">* >> >> * <service-unavailable xmlns="urn:ietf:params:xml:ns:xmpp-stanzas"/>* >> >> * </error>* >> >> * </message>* >> >> > I googled but could not find any clue. Did I do something wrong? > > Thanks a lot in advance! > > Best Regards. > > 程时睿 > CHENG Shirui > - - - - - Healthy and Happy Everyday! - - - - - > const char* const GuiGui = "mon amour et l'unique"; > > > > > |