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
spawn_thread? -> deferred?
ryah (author)
about 1 month ago
commit  8d410a265216bc390fe079ef5655ec33d7970d56
tree    10da0f7b45be6880ea45fce348830b3dbac1d789
parent  590255007398ef5bc9bbaa0e5697dde73239f245
...
30
31
32
33
 
34
35
36
...
30
31
32
 
33
34
35
36
0
@@ -30,7 +30,7 @@ module Ebb
0
     while @running
0
       FFI::server_process_connections()
0
       while client = FFI::server_waiting_clients.shift
0
- if app.respond_to?(:spawn_thread?) and !app.spawn_thread?(client.env)
0
+ if app.respond_to?(:deferred?) and !app.deferred?(client.env)
0
           process(app, client)
0
         else
0
           Thread.new(client) { |c| process(app, c) }
...
68
69
70
71
 
72
73
74
...
68
69
70
 
71
72
73
74
0
@@ -68,7 +68,7 @@ module Rack
0
       end
0
       
0
       # Never spawn threads for a request
0
- def spawn_thread?(env)
0
+ def deferred?(env)
0
         false
0
       end
0
     

Comments

    No one has commented yet.