Wen Lan wrote: > 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: I've noticed some really odd threading behavior in net/imap too. I think it needs a bit of a threading overhaul. We have at least one reported bug in JRuby that seems to be related to bad use of mutexes: http://jira.codehaus.org/browse/JRUBY-2950 This could be the same thing, but perhaps we're not detecting that it's the only thread stopping (since we don't have as rigid control over threads). - Charlie