ry / ebb fork watch download tarball
public
Description: web server
Homepage: http://ebb.rubyforge.org
Clone URL: git://github.com/ry/ebb.git
Search Repo:
Add runner option for arbitrary fd. remove opt for threaded processing
ryah (author)
Sun Apr 06 08:35:52 -0700 2008
commit  c44f2b57ebd5098a3cda708ac2dde2bdb44b46c6
tree    2d1eb040b8094e9c671372f62fabadf72c814204
parent  4c0d9bb92866164e71e922b17f1591f6611a61e0
...
58
59
60
61
62
 
63
64
65
...
71
72
73
 
74
75
76
...
58
59
60
 
 
61
62
63
64
...
70
71
72
73
74
75
76
0
@@ -58,8 +58,7 @@
0
       @parser = OptionParser.new
0
       @options = {
0
         :port => 4001,
0
- :timeout => 60,
0
- :threaded_processing => true
0
+ :timeout => 60
0
       }
0
     end
0
     
0
@@ -71,6 +70,7 @@
0
       @parser.separator ""
0
       # opts.on("-s", "--socket SOCKET", "listen on socket") { |socket| options[:socket] = socket }
0
       @parser.on("-p", "--port PORT", "(default: #{@options[:port]})") { |p| @options[:port]=p }
0
+ @parser.on("-fd", "--fd FD", "listen on arbitrary fd") { |fd| @options[:fileno]=fd }
0
       @parser.on("-d", "--daemonize", "Daemonize") { @options[:daemonize] = true }
0
       @parser.on("-l", "--log-file FILE", "File to redirect output") { |f| @options[:log_file]=f }
0
       @parser.on("-P", "--pid-file FILE", "File to store PID") { |f| @options[:pid_file]=f }
...
11
12
13
14
15
16
17
 
18
19
20
...
11
12
13
 
 
 
 
14
15
16
17
0
@@ -11,10 +11,7 @@
0
         # defaults for ebb_rails
0
         @options.update(
0
           :environment => 'development',
0
- :port => 3000,
0
- # rails has a mutex lock around each request - threaded processing
0
- # will only slow things down
0
- :threaded_processing => false
0
+ :port => 3000
0
         )
0
 
0
         @parser.on("-e", "--env ENV",

Comments

    No one has commented yet.