[#4479] Requesting addition to IRB (configurable standard output) — Sascha Ebach <se@...>

Hello,

13 messages 2005/02/24
[#4482] Re: Requesting addition to IRB (configurable standard output) — Sam Roberts <sroberts@...> 2005/02/25

Quoting se@digitale-wertschoepfung.de, on Fri, Feb 25, 2005 at 01:22:34AM +0900:

[#4483] Re: Requesting addition to IRB (configurable standard output) — Eric Hodel <drbrain@...7.net> 2005/02/25

On 24 Feb 2005, at 19:51, Sam Roberts wrote:

[#4488] Re: Requesting addition to IRB (configurable standard output) — Sam Roberts <sroberts@...> 2005/02/26

Quoting drbrain@segment7.net, on Sat, Feb 26, 2005 at 02:43:31AM +0900:

[#4489] Re: Requesting addition to IRB (configurable standard output) — Eric Hodel <drbrain@...7.net> 2005/02/26

On 25 Feb 2005, at 16:03, Sam Roberts wrote:

Re: windows socket connection freeze

From: ville.mattila@...
Date: 2005-02-08 15:32:19 UTC
List: ruby-core #4389
Hello,

I have tested Nakamura's fix, and it seems to work ok, but the connect
error message is not as nice as in 1.8.2 see the output below,


c:\data\ruby\bin\ruby -v  testing.rb
ruby 1.8.2 (2005-01-19) [i386-mswin32]
in thread: Tue Feb 08 17:20:11 FLE Standard Time 2005
in thread: Tue Feb 08 17:20:12 FLE Standard Time 2005
connecting...in thread: Tue Feb 08 17:20:13 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 08 17:20:36 FLE Standard Time 2005
in thread: Tue Feb 08 17:20:37 FLE Standard Time 2005
in thread: Tue Feb 08 17:20:38 FLE Standard Time 2005
testing.rb:24:in `join': Interrupt
        from testing.rb:24

f:\ruby1.9\usr\bin\ruby -v testing.rb
ruby 1.9.0 (2005-02-08) [i386-mswin32]
in thread: Tue Feb 08 17:20:45 FLE Standard Time 2005
in thread: Tue Feb 08 17:20:46 FLE Standard Time 2005
connecting...in thread: Tue Feb 08 17:20:47 FLE Standard Time 2005

in thread: Tue Feb 08 17:20:48 FLE Standard Time 2005got: Bad file
descriptor -
connect(2)

connected!
in thread: Tue Feb 08 17:20:49 FLE Standard Time 2005
in thread: Tue Feb 08 17:20:50 FLE Standard Time 2005
in thread: Tue Feb 08 17:20:51 FLE Standard Time 2005
in thread: Tue Feb 08 17:20:52 FLE Standard Time 2005
in thread: Tue Feb 08 17:20:53 FLE Standard Time 2005
testing.rb:24:in `join': Interrupt
        from testing.rb:24

here is the testing.rb

$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('172.16.56.189', 80) # bogus ip
rescue Exception => e
  puts "got: " + e.to_s
end
  puts "connected!"

  t.join




|---------+-------------------------------->
|         |           William Morgan       |
|         |           <wmorgan-ruby-core@ma|
|         |           sanjin.net>          |
|         |           Sent by: William     |
|         |           Morgan               |
|         |           <wmorgan@masanjin.net|
|         |           >                    |
|         |                                |
|         |                                |
|         |           02/07/2005 00:37     |
|         |           Please respond to    |
|         |           ruby-core            |
|         |                                |
|---------+-------------------------------->
  >--------------------------------------------------------------------------------------------------------------------------------|
  |                                                                                                                                |
  |        To:      ruby-core@ruby-lang.org                                                                                        |
  |        cc:                                                                                                                     |
  |        Subject: Re: windows socket connection freeze                                                                           |
  >--------------------------------------------------------------------------------------------------------------------------------|




Excerpts from U.Nakamura's mail of  6 Feb 2005 (EST):
> It's fixed at CVS HEAD.
> If someone reports that there is no problem, I' backport it to 1.8.

Thank you. As things stand now, RubyTorrent behaves very poorly on
Windows, so I look forward to seeing this fix committed.

--
William <wmorgan-ruby-core@masanjin.net>







In This Thread

Prev Next