Bug #1324
closedImap Tests hanging
Description
=begin
Ruby built with VC2008.  Two tests, test_starttls and test_unexpected_eof hang.  Tracing through the debugger, the two threads are in loops that call select and then go to sleep.  They never come out of it.  Note that changing the server = TCPServer.new(0) to server = TCPServer.new("localhost") allows the tests to run, but then:
ruby net\imap\test_imap.rb
- Failure:
 test_imaps_post_connection_check(IMAPTest) [net/imap/test_imap.rb:59]:
 [OpenSSL::SSL::SSLError] exception expected, not
 Class:
 Message: <"getaddrinfo: The specified class was not found. ">
 ---Backtrace---
 net/imap/test_imap.rb:118:ininitialize' net/imap/test_imap.rb:118:innew'
 net/imap/test_imap.rb:118:inimaps_test' net/imap/test_imap.rb:60:inblock in test_imaps_post_connection_check'
- Failure:
 test_imaps_unknown_ca(IMAPTest) [net/imap/test_imap.rb:23]:
 [OpenSSL::SSL::SSLError] exception expected, not
 Class:
 Message: <"getaddrinfo: The specified class was not found. ">
 ---Backtrace---
 net/imap/test_imap.rb:118:ininitialize' net/imap/test_imap.rb:118:innew'
 net/imap/test_imap.rb:118:inimaps_test' net/imap/test_imap.rb:24:inblock in test_imaps_unknown_ca'
- 
Failure: 
 test_imaps_verify_none(IMAPTest) [net/imap/test_imap.rb:47]:
 Exception raised:
 <#<SocketError: getaddrinfo: The specified class was not found. >>.
- 
Failure: 
 test_imaps_with_ca_file(IMAPTest) [net/imap/test_imap.rb:35]:
 Exception raised:
 <#<SocketError: getaddrinfo: The specified class was not found. >>.
- 
Error: 
 test_starttls(IMAPTest):
 SocketError: getaddrinfo: The specified class was not found.
 net/imap/test_imap.rb:156:ininitialize' net/imap/test_imap.rb:156:innew'
 net/imap/test_imap.rb:156:instarttls_test' net/imap/test_imap.rb:72:intest_starttls'
- 
Error: 
 test_unexpected_eof(IMAPTest):
 SocketError: getaddrinfo: The specified class was not found.
 net/imap/test_imap.rb:85:ininitialize' net/imap/test_imap.rb:85:innew'
 net/imap/test_imap.rb:85:in `test_unexpected_eof'
 =end
        
           Updated by yugui (Yuki Sonoda) over 16 years ago
          Updated by yugui (Yuki Sonoda) over 16 years ago
          
          
        
        
      
      - Assignee set to usa (Usaku NAKAMURA)
- Target version changed from 1.9.1 to 1.9.2
=begin
=end
        
           Updated by usa (Usaku NAKAMURA) over 16 years ago
          Updated by usa (Usaku NAKAMURA) over 16 years ago
          
          
        
        
      
      - Status changed from Open to Feedback
=begin
I cannot reproduce now...
Can you reproduce?
=end
        
           Updated by usa (Usaku NAKAMURA) about 16 years ago
          Updated by usa (Usaku NAKAMURA) about 16 years ago
          
          
        
        
      
      - Priority changed from Normal to 3
=begin
=end
        
           Updated by wanabe (_ wanabe) over 15 years ago
          Updated by wanabe (_ wanabe) over 15 years ago
          
          
        
        
      
      - Status changed from Feedback to Rejected
=begin
I can't reproduce too, and this issue has no feedback for more than half a year.
So, I set the status "Rejected" temporarily.
If someone can reproduce even now, please inform and/or reopen the issue.
=end