Skip to content

Commit

Permalink
remove patch for unsafe http_router and jruby, closes #863
Browse files Browse the repository at this point in the history
  • Loading branch information
ujifgc committed Jan 11, 2015
1 parent 6ca6844 commit 2a2803a
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 18 deletions.
13 changes: 0 additions & 13 deletions padrino-core/lib/padrino-core/application.rb
Original file line number Diff line number Diff line change
Expand Up @@ -26,19 +26,6 @@ def logger
Padrino.logger
end

# TODO: Remove this hack (issue #863) after getting rid of thread-unsafe http_router:
if RUBY_PLATFORM == "java"
alias_method :original_call, :call
def call(*args)
settings.init_mutex.synchronize do
instance_eval{ undef :call }
class_eval{ alias_method :call, :original_call }
instance_eval{ undef :original_call }
super(*args)
end
end
end

class << self
def inherited(base)
begun_at = Time.now
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -22,11 +22,6 @@ def default_configuration!
set :method_override, true
set :default_builder, 'StandardFormBuilder'

# TODO: Remove this hack after getting rid of thread-unsafe http_router:
if RUBY_PLATFORM == "java"
set :init_mutex, Mutex.new
end

default_paths
default_security
global_configuration
Expand Down

0 comments on commit 2a2803a

Please sign in to comment.