Discussion:
get_items_from inside callback
tyler gillies
2010-04-20 01:14:06 UTC
Permalink
when i do this:

client.add_message_callback do |m|
pub = Jabber::PubSub::ServiceHelper.new(client,"tyler-***@public.gmane.org")
res = pub.get_items_from "urn:xmpp:microblog:0"
end

i get errors about closing the thread

works if i get items from outside callback

anyone know a better way to do it?
--
Everyone Loves Tea
http://www.everyonelovestea.com
Erik Elmore
2010-04-20 04:51:02 UTC
Permalink
client.add_message_callback do |m|
Thread.do
pub = Jabber::PubSub::ServiceHelper.
new(client,"tyler-***@public.gmane.org")
res = pub.get_items_from "urn:xmpp:microblog:0"
end
end


+=
Erik Elmore
Post by tyler gillies
client.add_message_callback do |m|
res = pub.get_items_from "urn:xmpp:microblog:0"
end
i get errors about closing the thread
works if i get items from outside callback
anyone know a better way to do it?
--
Everyone Loves Tea
http://www.everyonelovestea.com
_______________________________________________
Xmpp4r-devel mailing list
https://mail.gna.org/listinfo/xmpp4r-devel
Erik Elmore
2010-04-20 04:51:28 UTC
Permalink
make that, Thread.new.do

+=
Erik Elmore
Post by tyler gillies
client.add_message_callback do |m|
Thread.do
pub = Jabber::PubSub::ServiceHelper.
res = pub.get_items_from "urn:xmpp:microblog:0"
end
end
+=
Erik Elmore
Post by tyler gillies
client.add_message_callback do |m|
res = pub.get_items_from "urn:xmpp:microblog:0"
end
i get errors about closing the thread
works if i get items from outside callback
anyone know a better way to do it?
--
Everyone Loves Tea
http://www.everyonelovestea.com
_______________________________________________
Xmpp4r-devel mailing list
https://mail.gna.org/listinfo/xmpp4r-devel
tyler gillies
2010-04-20 05:01:11 UTC
Permalink
I get spammed with

D, [2010-04-19T19:00:16.389231 #10142] DEBUG -- : TRYING TO CLOSE,
STILL PROCESSING 3 STANZAS
D, [2010-04-19T19:00:16.389231 #10142] DEBUG -- : TRYING TO CLOSE,
STILL PROCESSING 3 STANZAS
D, [2010-04-19T19:00:16.389231 #10142] DEBUG -- : TRYING TO CLOSE,
STILL PROCESSING 3 STANZAS
D, [2010-04-19T19:00:16.389231 #10142] DEBUG -- : TRYING TO CLOSE,
STILL PROCESSING 3 STANZAS
D, [2010-04-19T19:00:16.389231 #10142] DEBUG -- : TRYING TO CLOSE,
STILL PROCESSING 3 STANZAS
D, [2010-04-19T19:00:16.389231 #10142] DEBUG -- : TRYING TO CLOSE,
STILL PROCESSING 3 STANZAS
D, [2010-04-19T19:00:16.389231 #10142] DEBUG -- : TRYING TO CLOSE,
STILL PROCESSING 3 STANZAS
D, [2010-04-19T19:00:16.389231 #10142] DEBUG -- : TRYING TO CLOSE,
STILL PROCESSING 3 STANZAS
D, [2010-04-19T19:00:16.389231 #10142] DEBUG -- : TRYING TO CLOSE,
STILL PROCESSING 3 STANZAS
D, [2010-04-19T19:00:16.389231 #10142] DEBUG -- : TRYING TO CLOSE,
STILL PROCESSING 3 STANZAS
D, [2010-04-19T19:00:16.389231 #10142] DEBUG -- : TRYING TO CLOSE,
STILL PROCESSING 3 STANZAS
D, [2010-04-19T19:00:16.389231 #10142] DEBUG -- : TRYING TO CLOSE,
STILL PROCESSING 3 STANZAS
D, [2010-04-19T19:00:16.389231 #10142] DEBUG -- : TRYING TO CLOSE,
STILL PROCESSING 3 STANZAS
D, [2010-04-19T19:00:16.389231 #10142] DEBUG -- : TRYING TO CLOSE,
STILL PROCESSING 3 STANZAS
D, [2010-04-19T19:00:16.489231 #10142] DEBUG -- : TRYING TO CLOSE,
STILL PROCESSING 3 STANZAS
D, [2010-04-19T19:00:16.489231 #10142] DEBUG -- : TRYING TO CLOSE,
STILL PROCESSING 3 STANZAS
D, [2010-04-19T19:00:16.489231 #10142] DEBUG -- : TRYING TO CLOSE,
STILL PROCESSING 3 STANZAS
D, [2010-04-19T19:00:16.489231 #10142] DEBUG -- : TRYING TO CLOSE,
STILL PROCESSING 3 STANZAS
D, [2010-04-19T19:00:16.489231 #10142] DEBUG -- : TRYING TO CLOSE,
STILL PROCESSING 3 STANZAS
D, [2010-04-19T19:00:16.489231 #10142] DEBUG -- : TRYING TO CLOSE,
STILL PROCESSING 3 STANZAS
D, [2010-04-19T19:00:16.489231 #10142] DEBUG -- : TRYING TO CLOSE,
STILL PROCESSING 3 STANZAS
D, [2010-04-19T19:00:16.489231 #10142] DEBUG -- : TRYING TO CLOSE,
STILL PROCESSING 3 STANZAS
D, [2010-04-19T19:00:16.489231 #10142] DEBUG -- : TRYING TO CLOSE,
STILL PROCESSING 3 STANZAS
Post by Erik Elmore
make that, Thread.new.do
+=
Erik Elmore
client.add_message_callback  do |m|
  Thread.do
    pub = Jabber::PubSub::ServiceHelper.
    res = pub.get_items_from "urn:xmpp:microblog:0"
  end
end
+=
Erik Elmore
client.add_message_callback  do |m|
               res = pub.get_items_from "urn:xmpp:microblog:0"
end
i get errors about closing the thread
works if i get items from outside callback
anyone know a better way to do it?
--
Everyone Loves Tea
http://www.everyonelovestea.com
_______________________________________________
Xmpp4r-devel mailing list
https://mail.gna.org/listinfo/xmpp4r-devel
_______________________________________________
Xmpp4r-devel mailing list
https://mail.gna.org/listinfo/xmpp4r-devel
--
Everyone Loves Tea
http://www.everyonelovestea.com
Erik Elmore
2010-04-20 05:09:05 UTC
Permalink
I see that from time to time, also. It doesn't seem like an error or
warning, so I never regarded it as such.

+=
Erik Elmore
Post by tyler gillies
I get spammed with
D, [2010-04-19T19:00:16.389231 #10142] DEBUG -- : TRYING TO CLOSE,
STILL PROCESSING 3 STANZAS
D, [2010-04-19T19:00:16.389231 #10142] DEBUG -- : TRYING TO CLOSE,
STILL PROCESSING 3 STANZAS
D, [2010-04-19T19:00:16.389231 #10142] DEBUG -- : TRYING TO CLOSE,
STILL PROCESSING 3 STANZAS
D, [2010-04-19T19:00:16.389231 #10142] DEBUG -- : TRYING TO CLOSE,
STILL PROCESSING 3 STANZAS
D, [2010-04-19T19:00:16.389231 #10142] DEBUG -- : TRYING TO CLOSE,
STILL PROCESSING 3 STANZAS
D, [2010-04-19T19:00:16.389231 #10142] DEBUG -- : TRYING TO CLOSE,
STILL PROCESSING 3 STANZAS
D, [2010-04-19T19:00:16.389231 #10142] DEBUG -- : TRYING TO CLOSE,
STILL PROCESSING 3 STANZAS
D, [2010-04-19T19:00:16.389231 #10142] DEBUG -- : TRYING TO CLOSE,
STILL PROCESSING 3 STANZAS
D, [2010-04-19T19:00:16.389231 #10142] DEBUG -- : TRYING TO CLOSE,
STILL PROCESSING 3 STANZAS
D, [2010-04-19T19:00:16.389231 #10142] DEBUG -- : TRYING TO CLOSE,
STILL PROCESSING 3 STANZAS
D, [2010-04-19T19:00:16.389231 #10142] DEBUG -- : TRYING TO CLOSE,
STILL PROCESSING 3 STANZAS
D, [2010-04-19T19:00:16.389231 #10142] DEBUG -- : TRYING TO CLOSE,
STILL PROCESSING 3 STANZAS
D, [2010-04-19T19:00:16.389231 #10142] DEBUG -- : TRYING TO CLOSE,
STILL PROCESSING 3 STANZAS
D, [2010-04-19T19:00:16.389231 #10142] DEBUG -- : TRYING TO CLOSE,
STILL PROCESSING 3 STANZAS
D, [2010-04-19T19:00:16.489231 #10142] DEBUG -- : TRYING TO CLOSE,
STILL PROCESSING 3 STANZAS
D, [2010-04-19T19:00:16.489231 #10142] DEBUG -- : TRYING TO CLOSE,
STILL PROCESSING 3 STANZAS
D, [2010-04-19T19:00:16.489231 #10142] DEBUG -- : TRYING TO CLOSE,
STILL PROCESSING 3 STANZAS
D, [2010-04-19T19:00:16.489231 #10142] DEBUG -- : TRYING TO CLOSE,
STILL PROCESSING 3 STANZAS
D, [2010-04-19T19:00:16.489231 #10142] DEBUG -- : TRYING TO CLOSE,
STILL PROCESSING 3 STANZAS
D, [2010-04-19T19:00:16.489231 #10142] DEBUG -- : TRYING TO CLOSE,
STILL PROCESSING 3 STANZAS
D, [2010-04-19T19:00:16.489231 #10142] DEBUG -- : TRYING TO CLOSE,
STILL PROCESSING 3 STANZAS
D, [2010-04-19T19:00:16.489231 #10142] DEBUG -- : TRYING TO CLOSE,
STILL PROCESSING 3 STANZAS
D, [2010-04-19T19:00:16.489231 #10142] DEBUG -- : TRYING TO CLOSE,
STILL PROCESSING 3 STANZAS
Post by Erik Elmore
make that, Thread.new.do
+=
Erik Elmore
Post by tyler gillies
client.add_message_callback do |m|
Thread.do
pub = Jabber::PubSub::ServiceHelper.
res = pub.get_items_from "urn:xmpp:microblog:0"
end
end
+=
Erik Elmore
Post by tyler gillies
client.add_message_callback do |m|
res = pub.get_items_from "urn:xmpp:microblog:0"
end
i get errors about closing the thread
works if i get items from outside callback
anyone know a better way to do it?
--
Everyone Loves Tea
http://www.everyonelovestea.com
_______________________________________________
Xmpp4r-devel mailing list
https://mail.gna.org/listinfo/xmpp4r-devel
_______________________________________________
Xmpp4r-devel mailing list
https://mail.gna.org/listinfo/xmpp4r-devel
--
Everyone Loves Tea
http://www.everyonelovestea.com
_______________________________________________
Xmpp4r-devel mailing list
https://mail.gna.org/listinfo/xmpp4r-devel
Brian Candler
2010-04-20 12:13:40 UTC
Permalink
Post by tyler gillies
I get spammed with
D, [2010-04-19T19:00:16.389231 #10142] DEBUG -- : TRYING TO CLOSE,
STILL PROCESSING 3 STANZAS
There's a fix for that in git so it only tries 20 times.
Commit 652d1bfb3268d39ba7b07dcddd0640704a85a2cc

Loading...