Project

General

Profile

Actions

Bug #3477

closed

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

Added by znz (Kazuhiro NISHIYAMA) over 13 years ago. Updated almost 13 years ago.

Status:
Closed
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

Actions #1

Updated by nobu (Nobuyoshi Nakada) over 13 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

Actions

Also available in: Atom PDF

Like0
Like0