Project

General

Profile

Backport #4170

DRb doesn't accept hostnames started with digits

Added by dingdeng (Ding Deng) almost 9 years ago. Updated 3 months ago.

Status:
Closed
Priority:
Normal
Assignee:
-
[ruby-core:33769]

Description

=begin
With hostnames started with digits (e.g. druby://0x44:47975), DRb will throw "Invalid argument" exceptions:

/usr/lib/ruby/1.8/drb/drb.rb:736:in open': druby://0x44:47975 - #<Errno::EINVAL: Invalid argument - connect(2)> (DRb::DRbConnError)
from /usr/lib/ruby/1.8/drb/drb.rb:729:in
each'
from /usr/lib/ruby/1.8/drb/drb.rb:729:in open'
from /usr/lib/ruby/1.8/drb/drb.rb:1191:in
initialize'
from /usr/lib/ruby/1.8/drb/drb.rb:1171:in new'
from /usr/lib/ruby/1.8/drb/drb.rb:1171:in
open'
from /usr/lib/ruby/1.8/drb/drb.rb:1087:in method_missing'
from /usr/lib/ruby/1.8/drb/drb.rb:1105:in
with_friend'
from /usr/lib/ruby/1.8/drb/drb.rb:1086:in method_missing'
from /home/0x44/.gem/ruby/1.8/gems/vmail-0.6.4/bin/vmail_client:13:in
send'
from /home/0x44/.gem/ruby/1.8/gems/vmail-0.6.4/bin/vmail_client:13
from /home/0x44/.gem/ruby/1.8/bin/vmail_client:19:in `load'
from /home/0x44/.gem/ruby/1.8/bin/vmail_client:19

You may read more about this specific exception here:

https://github.com/danchoi/vmail/issues/issue/16

According to RFC 1123:

The syntax of a legal Internet host name was specified in RFC-952
[DNS:4]. One aspect of host name syntax is hereby changed: the
restriction on the first character is relaxed to allow either a
letter or a digit. Host software MUST support this more liberal
syntax.

Therefore I suspect it a DRb bug. Thanks.
=end

History

#1

Updated by jeremyevans0 (Jeremy Evans) 3 months ago

  • ruby -v deleted (ruby 1.8.7 (2010-08-16 patchlevel 302) [i486-linux])
  • Status changed from Open to Closed
  • Description updated (diff)
  • Project changed from Ruby 1.8 to Backport187
  • Tracker changed from Bug to Backport

Also available in: Atom PDF