mirror of
https://github.com/rails/rails.git
synced 2022-11-09 12:12:34 -05:00
Solved the hanging issue.. USR2 is now the preferred way of restarting FCGIs!
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@2400 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
This commit is contained in:
parent
8e4f27a50a
commit
00e085f5a5
1 changed files with 3 additions and 3 deletions
|
@ -66,10 +66,10 @@ class RailsFCGIHandler
|
|||
# Break if graceful exit or restart requested.
|
||||
case when_ready
|
||||
when :exit
|
||||
close_connection
|
||||
close_connection(cgi)
|
||||
break
|
||||
when :restart
|
||||
close_connection
|
||||
close_connection(cgi)
|
||||
restart!
|
||||
end
|
||||
|
||||
|
@ -178,7 +178,7 @@ class RailsFCGIHandler
|
|||
GC.enable; GC.start; GC.disable
|
||||
end
|
||||
|
||||
def close_connection
|
||||
def close_connection(cgi)
|
||||
cgi.instance_variable_get("@request").finish
|
||||
end
|
||||
end
|
||||
|
|
Loading…
Reference in a new issue