From: Wen Lan Date: 2009-01-04T22:45:45+09:00 Subject: the thread problem in ruby imap hi, all my application is about ruby imap, it depends on daemons lib and runs as a background job. when it fetches the mails from gmail, it will throw the error below randomly: 2008-12-30 11:37:04 ERROR failed to process message 6@11: stopping only thread note: use sleep to stop forever backtrace at Tue Dec 30 11:37:04 -0800 2008: /usr/lib/ruby/1.8/monitor.rb:102:in `stop' /usr/lib/ruby/1.8/monitor.rb:102:in `wait' /usr/lib/ruby/1.8/net/imap.rb:954:in `get_tagged_response' /usr/lib/ruby/1.8/net/imap.rb:1014:in `send_command' /usr/lib/ruby/1.8/monitor.rb:238:in `synchronize' /usr/lib/ruby/1.8/net/imap.rb:999:in `send_command' /usr/lib/ruby/1.8/net/imap.rb:392:in `select' /usr/lib/ruby/1.8/monitor.rb:238:in `synchronize' /usr/lib/ruby/1.8/net/imap.rb:390:in `select' /usr/lib/ruby/gems/1.8/gems/daemons-1.0.10/lib/daemons/application.rb:176:in `load' /usr/lib/ruby/gems/1.8/gems/daemons-1.0.10/lib/daemons/application.rb:176:in `start_load' /usr/lib/ruby/gems/1.8/gems/daemons-1.0.10/lib/daemons/application.rb:253:in `start' /usr/lib/ruby/gems/1.8/gems/daemons-1.0.10/lib/daemons/controller.rb:69:in `run' /usr/lib/ruby/gems/1.8/gems/daemons-1.0.10/lib/daemons.rb:139:in `run' /usr/lib/ruby/gems/1.8/gems/daemons-1.0.10/lib/daemons/cmdline.rb:105:in `call' /usr/lib/ruby/gems/1.8/gems/daemons-1.0.10/lib/daemons/cmdline.rb:105:in `catch_exceptions' /usr/lib/ruby/gems/1.8/gems/daemons-1.0.10/lib/daemons.rb:138:in `run' the ruby version is 1.8.5. any ideas? thank you! -- Posted via http://www.ruby-forum.com/.