Bug #21 [ruby-dev:34881]
should terminate @receiver_thread of Net::IMAP safely
| Status : | Assigned | Start : | 05/29/2008 | |
| Priority : | Normal | Due date : | ||
| Assigned to : | Shugo Maeda | % Done : | 0% |
|
| Category : | - | |||
| Target version : | 1.9.x | |||
| ruby -v : |
Description
@receiver_thread of Net::IMAP may be terminated by exception, and this causes the process termination if Thread.abort_on_exception is true. Then Net::IMAP#disconnect does not call @receiver_thread.join if TCPSocket#close raises an exception. Reported by Tanaka Akira in [ruby-dev:34821].