Project

General

Profile

Actions

Bug #3318

closed

net/imap/test_imap.rb reports an error on Windows

Added by usa (Usaku NAKAMURA) almost 14 years ago. Updated almost 13 years ago.

Status:
Closed
Target version:
ruby -v:
ruby 1.9.3dev (2010-05-19 trunk 27889) [i386-mswin32]
Backport:
[ruby-dev:41350]

Description

=begin
imapのテストが以下のようなエラーを出します。

  1. Error:
    test_idle_done_not_during_idle(IMAPTest):
    IOError: closed stream
    C:/ruby/test/net/imap/test_imap.rb:283:in `test_idle_done_not_during_idle'

以下のパッチで問題は出なくなるんですが、これでいいんでしょうか?
実はsocketレベルに問題がありそうだったりしますか?

Index: lib/net/imap.rb

--- lib/net/imap.rb (revision 27889)
+++ lib/net/imap.rb (working copy)
@@ -311,7 +311,7 @@ module Net
@receiver_thread.raise(e)
end
@receiver_thread.join

  •  @sock.close
    
  •  @sock.close unless @sock.closed?
     raise e if e
    
    end
    =end
Actions

Also available in: Atom PDF

Like0
Like0Like0Like0Like0Like0