Skip to content

Commit

Permalink
Revert "Use kqueue on macintosh"
Browse files Browse the repository at this point in the history
Experiencing bugs http://github.com/ry/node/issues/#issue/74

This reverts commit 409020a.
  • Loading branch information
ry committed Mar 5, 2010
1 parent 5217eda commit 6d60d2d
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 8 deletions.
8 changes: 3 additions & 5 deletions benchmark/http_simple.rb
Original file line number Diff line number Diff line change
Expand Up @@ -86,12 +86,10 @@ def call(env)
if $0 == __FILE__
#require DIR + '/../lib/ebb'
require 'rubygems'
# require 'rack'
# Rack::Handler::Mongrel.run(SimpleApp.new, :Port => 8000)

require 'rack'
require 'thin'
require 'ebb'
# Rack::Handler::Mongrel.run(SimpleApp.new, :Port => 8000)
Thin::Server.start("0.0.0.0", 8000, SimpleApp.new)

# require 'ebb'
# Ebb::start_server(SimpleApp.new, :port => 8000)
end
4 changes: 1 addition & 3 deletions src/node.cc
Original file line number Diff line number Diff line change
Expand Up @@ -1240,12 +1240,10 @@ int main(int argc, char *argv[]) {
evcom_ignore_sigpipe();

// Initialize the default ev loop.
#if defined(__sun)
#ifdef __sun
// TODO(Ryan) I'm experiencing abnormally high load using Solaris's
// EVBACKEND_PORT. Temporarally forcing select() until I debug.
ev_default_loop(EVBACKEND_SELECT);
#elif defined(__APPLE__)
ev_default_loop(EVBACKEND_KQUEUE);
#else
ev_default_loop(EVFLAG_AUTO);
#endif
Expand Down

0 comments on commit 6d60d2d

Please sign in to comment.