TCPSocket -> Wrong error on Windows?

Hi all,

I’m playing around with net connections a bit and ran into this behaviour:
(Note, that there’s no partner running on the given port.)

C:>irb
irb(main):001:0> require “socket”
=> true
irb(main):002:0> session = TCPSocket.new( ‘localhost’, 12345 )
Errno::E061: Die Druckerwarteschlange ist voll. - connect(2)
from (irb):2:in initialize' from (irb):2:innew’
from (irb):2
irb(main):003:0> exit

What’s happening?
“Die Druckerwarteschlange ist voll.” means something like “The printer queue is full”.
Hmm, for me the translation doesn’t help a lot.

Does anyone have an idea, why I get … a wrong error?
I’m running the Win installer version from Dave and Andy on a Win98SE.

BTW, trying this one the identical hardware, but using an OS I get the appropriate error:

stk@tao:~> irb
irb(main):001:0> require ‘socket’
=> true
irb(main):002:0> session = TCPSocket.new( ‘localhost’, 12345 )
Errno::ECONNREFUSED: Connection refused - connect(2)
from (irb):2:in initialize' from (irb):2:innew’
from (irb):2
irb(main):003:0>

That makes more sense.

Have a nice world

Stephan

Hi,

What’s happening?
“Die Druckerwarteschlange ist voll.” means something like “The printer queue is full”.
Hmm, for me the translation doesn’t help a lot.

I think it had been fixed already.

Does anyone have an idea, why I get … a wrong error?
I’m running the Win installer version from Dave and Andy on a Win98SE.

What version is it?

···

At Sun, 30 Nov 2003 07:57:11 +0900, Stephan Kämper wrote:


Nobu Nakada

I just ran this test on a WinXP box using the installer ruby180-10.exe
and I get the same error, though it’s in english, not German:

irb(main):001:0> require ‘socket’
=> true
irb(main):002:0> session = TCPSocket.new(“localhost”, 12345)
Errno::E061: The printer queue is full. - connect(2)
from (irb):2:in initialize' from (irb):2:in new’
from (irb):2

···

On 11/29/2003 8:24 PM, nobu.nokada@softhome.net wrote:

Hi,

At Sun, 30 Nov 2003 07:57:11 +0900, >Stephan Kämper wrote:

What’s happening?
“Die Druckerwarteschlange ist voll.” means something like “The printer queue is full”.
Hmm, for me the translation doesn’t help a lot.

I think it had been fixed already.

Does anyone have an idea, why I get … a wrong error?
I’m running the Win installer version from Dave and Andy on a Win98SE.

What version is it?


Never trust a girl with your mother’s cow
never let your trousers go falling down in the green grass…

http://www.joeygibson.com/blog

Hi

I think it had been fixed already.

And so did I, until…

What version is it?

Sorry for not giving this info right away:

ruby 1.8.0 (2003-08-04) [i386-mswin32]

As I mentioned I use Dave & Andy’s WinInstaller on Win98. To be precise I installed this version

http://prdownloads.sourceforge.net/rubyinstaller/ruby180-10.exe?download

(with some additional modules installed, e.g. the latest FxRuby [1.0.27])

Best wishes

Stephan

···

nobu.nokada@softhome.net wrote:

Same error.
Printer queue is full

ruby -v
ruby 1.8.0 (2003-08-04) [i386-mswin32]

OS
Win 2000

I’m trying to find the code that messed things up… TCPServer.new works…

-Rich

Hi,

···

At Sun, 30 Nov 2003 10:30:38 +0900, Joey Gibson wrote:

I just ran this test on a WinXP box using the installer ruby180-10.exe
and I get the same error, though it’s in english, not German:

irb(main):001:0> require ‘socket’
=> true
irb(main):002:0> session = TCPSocket.new(“localhost”, 12345)
Errno::E061: The printer queue is full. - connect(2)
from (irb):2:in initialize' from (irb):2:in new’
from (irb):2

Mapping from WSACONNREFUSED seems lacked. But I’m not sure why
it’s E061 but not E10061.


Nobu Nakada

“Stephan Kämper” wrote:

Sorry for not giving this info right away:

ruby 1.8.0 (2003-08-04) [i386-mswin32]

irb(main):001:0> require “socket”
=> true
irb(main):002:0> session = TCPSocket.new(‘localhost’,12345)
Errno::ECONNREFUSED: No connection could be made because the target machine actively refused it. - connect(2)
from (irb):2:in initialize' from (irb):2:in new’
from (irb):2
irb(main):003:0>
irb(main):006:0> RUBY_VERSION
=> “1.8.1”
irb(main):007:0> RUBY_PLATFORM
=> “i386-mswin32”
irb(main):008:0> RUBY_RELEASE_DATE
=> “2003-10-31”

This is running 1.8.1-preview2 under Windows XP.