Project

General

Profile

Bug #3477

un.rb: httpd: --max-clients does not work

Added by znz (Kazuhiro NISHIYAMA) about 9 years ago. Updated over 8 years ago.

Status:
Closed
Priority:
Normal
Target version:
-
ruby -v:
ruby 1.9.3dev (2010-06-18 trunk 28359) [x86_64-linux]
Backport:

Description

=begin
un.rb の httpd で --max-clients オプションを指定すると ArgumentError になります。
どこかで to_i しておかないといけないようです。

% ruby-trunk -v
ruby 1.9.3dev (2010-06-18 trunk 28359) [x86_64-linux]
% ruby-trunk -run -e httpd -- --max-clients=1 .
.../thread.rb:252:in >': comparison of String with 0 failed (ArgumentError)
from .../thread.rb:252:in
initialize'
from .../webrick/server.rb:49:in new'
from .../webrick/server.rb:49:in
initialize'
from .../webrick/httpserver.rb:24:in initialize'
from .../un.rb:311:in
new'
from .../un.rb:311:in block in httpd'
from .../un.rb:60:in
setup'
from .../un.rb:302:in httpd'
from -e:1:in
'
%
=end

Associated revisions

Revision 13158c4d
Added by nobu (Nobuyoshi Nakada) about 9 years ago

  • lib/un.rb (httpd): MaxClients also should be integer. [ruby-dev:41724] [Bug #3477]

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@28427 b2dd03c8-39d4-4d8f-98ff-823fe69b080e

Revision 23e880c7
Added by nobu (Nobuyoshi Nakada) about 9 years ago

  • lib/un.rb (httpd): MaxClients also should be integer. [ruby-dev:41724] [Bug #3477]

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_9_2@28427 b2dd03c8-39d4-4d8f-98ff-823fe69b080e

Revision 28427
Added by nobu (Nobuyoshi Nakada) about 9 years ago

  • lib/un.rb (httpd): MaxClients also should be integer. [ruby-dev:41724] [Bug #3477]

Revision 28427
Added by nobu (Nobuyoshi Nakada) about 9 years ago

  • lib/un.rb (httpd): MaxClients also should be integer. [ruby-dev:41724] [Bug #3477]

Revision 28427
Added by nobu (Nobuyoshi Nakada) about 9 years ago

  • lib/un.rb (httpd): MaxClients also should be integer. [ruby-dev:41724] [Bug #3477]

Revision 28427
Added by nobu (Nobuyoshi Nakada) about 9 years ago

  • lib/un.rb (httpd): MaxClients also should be integer. [ruby-dev:41724] [Bug #3477]

Revision 28427
Added by nobu (Nobuyoshi Nakada) about 9 years ago

  • lib/un.rb (httpd): MaxClients also should be integer. [ruby-dev:41724] [Bug #3477]

Revision 28427
Added by nobu (Nobuyoshi Nakada) about 9 years ago

  • lib/un.rb (httpd): MaxClients also should be integer. [ruby-dev:41724] [Bug #3477]

History

#1

Updated by nobu (Nobuyoshi Nakada) about 9 years ago

  • Status changed from Open to Closed
  • % Done changed from 0 to 100

=begin
This issue was solved with changeset r28427.
Kazuhiro, thank you for reporting this issue.
Your contribution to Ruby is greatly appreciated.
May Ruby be with you.

=end

Also available in: Atom PDF