Project

General

Profile

Bug #3477

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

Added by znz (Kazuhiro NISHIYAMA) almost 10 years ago. Updated about 9 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

Also available in: Atom PDF