ry / ebb fork watch download tarball
public this repo is viewable by everyone
Description: web server
Homepage: http://ebb.rubyforge.org
Clone URL: git://github.com/ry/ebb.git
two small bug fixes
Ryan Dahl (author)
2 months ago
commit  6f1a46c3f1ebc9b6f8b73e8c053a8047d058dc8d
tree    d6bdac1bc60b00b65d32129414bcb77f8841a9ea
parent  62b496c6d96f8e7cf52c258c740d63c7b1d23ccf
...
72
73
74
75
 
76
77
78
...
109
110
111
112
 
113
114
115
...
119
120
121
 
122
123
124
...
128
129
130
131
 
132
133
134
...
72
73
74
 
75
76
77
78
...
109
110
111
 
112
113
114
115
...
119
120
121
122
123
124
125
...
129
130
131
 
132
133
134
135
0
@@ -72,7 +72,7 @@ class ServerTest
0
   attr_reader :name, :port, :app, :pid
0
   def initialize(name, port, &start_block)
0
     @name = name
0
- @port = port
0
+ @port = port.to_i
0
   end
0
   
0
   def <=>(a)
0
@@ -109,7 +109,7 @@ class ServerTest
0
     require 'mongrel'
0
     require 'swiftcore/evented_mongrel'
0
     ENV['EVENT'] = "1"
0
- Rack::Handler::Mongrel.run(app, :Host => '0.0.0.0', :Port => @port)
0
+ Rack::Handler::Mongrel.run(app, :Host => '0.0.0.0', :Port => @port.to_i)
0
   end
0
   
0
   def start_ebb
0
@@ -119,6 +119,7 @@ class ServerTest
0
   
0
   def start_mongrel
0
    require 'mongrel'
0
+ ENV.delete('EVENT')
0
    Rack::Handler::Mongrel.run(app, :Port => @port)
0
   end
0
   
0
@@ -128,7 +129,7 @@ class ServerTest
0
   end
0
   
0
   def trial(ab_cmd)
0
- cmd = ab_cmd.sub('PORT', @port)
0
+ cmd = ab_cmd.sub('PORT', @port.to_s)
0
     
0
     puts "#{@name} (#{cmd})"
0
     
...
99
100
101
102
 
103
...
99
100
101
 
102
103
0
@@ -99,4 +99,4 @@ struct ebb_server {
0
   ebb_request_cb request_cb;
0
 };
0
 
0
-#endif ebb_h
0
+#endif
0
\ No newline at end of file

Comments

    No one has commented yet.