From: ville.mattila@... Date: 2005-02-22T20:36:10+09:00 Subject: Re: windows socket connection freeze >From: "U.Nakamura" >Date: 02/21/2005 04:00:03 >Subject: Re: windows socket connection freeze > >Hello, > >In message "Re: windows socket connection freeze" >on Feb.19,2005 10:29:19, wrote: >| Oops, I forgot to tell him OK. Please commit if it's not done yet. > >Done. Yes it is! Here is the test result. Works fine! >c:\data\ruby\bin\ruby -v testing.rb ruby 1.8.2 (2005-02-22) [i386-mswin32] in thread: Tue Feb 22 13:35:30 FLE Standard Time 2005 in thread: Tue Feb 22 13:35:31 FLE Standard Time 2005 connecting...in thread: Tue Feb 22 13:35:32 FLE Standard Time 2005 in thread: Tue Feb 22 13:35:33 FLE Standard Time 2005 in thread: Tue Feb 22 13:35:34 FLE Standard Time 2005 in thread: Tue Feb 22 13:35:35 FLE Standard Time 2005 in thread: Tue Feb 22 13:35:36 FLE Standard Time 2005 in thread: Tue Feb 22 13:35:37 FLE Standard Time 2005 in thread: Tue Feb 22 13:35:38 FLE Standard Time 2005 in thread: Tue Feb 22 13:35:39 FLE Standard Time 2005 in thread: Tue Feb 22 13:35:40 FLE Standard Time 2005 in thread: Tue Feb 22 13:35:41 FLE Standard Time 2005 in thread: Tue Feb 22 13:35:42 FLE Standard Time 2005 in thread: Tue Feb 22 13:35:43 FLE Standard Time 2005 in thread: Tue Feb 22 13:35:44 FLE Standard Time 2005 in thread: Tue Feb 22 13:35:45 FLE Standard Time 2005 in thread: Tue Feb 22 13:35:46 FLE Standard Time 2005 in thread: Tue Feb 22 13:35:47 FLE Standard Time 2005 in thread: Tue Feb 22 13:35:48 FLE Standard Time 2005 in thread: Tue Feb 22 13:35:49 FLE Standard Time 2005 in thread: Tue Feb 22 13:35:50 FLE Standard Time 2005 in thread: Tue Feb 22 13:35:51 FLE Standard Time 2005 in thread: Tue Feb 22 13:35:52 FLE Standard Time 2005 in thread: Tue Feb 22 13:35:53 FLE Standard Time 2005 got: A connection attempt failed because the connected party did not properly re spond after a period of time, or established connection failed because connected host has failed to respond. - connect(2) connected! in thread: Tue Feb 22 13:35:54 FLE Standard Time 2005 in thread: Tue Feb 22 13:35:55 FLE Standard Time 2005 in thread: Tue Feb 22 13:35:56 FLE Standard Time 2005 in thread: Tue Feb 22 13:35:57 FLE Standard Time 2005 in thread: Tue Feb 22 13:35:58 FLE Standard Time 2005 in thread: Tue Feb 22 13:35:59 FLE Standard Time 2005 in thread: Tue Feb 22 13:36:00 FLE Standard Time 2005 in thread: Tue Feb 22 13:36:01 FLE Standard Time 2005 in thread: Tue Feb 22 13:36:02 FLE Standard Time 2005 in thread: Tue Feb 22 13:36:03 FLE Standard Time 2005 in thread: Tue Feb 22 13:36:04 FLE Standard Time 2005 in thread: Tue Feb 22 13:36:05 FLE Standard Time 2005 in thread: Tue Feb 22 13:36:06 FLE Standard Time 2005 in thread: Tue Feb 22 13:36:07 FLE Standard Time 2005 I used this script for testing... ------- $stdout.sync = true require 'socket' t = Thread.new do while true puts "in thread: " + Time.now.to_s sleep 1 end end sleep 2 puts "connecting..." begin h = TCPSocket.new('x.x.x.x', 80) # bogus ip rescue Exception => e puts "got: " + e.to_s end puts "connected!" t.join -----