Permalink
Browse files

Had some logic backwards in the new dispatch.fcgi handler

git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@1540 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
  • Loading branch information...
1 parent ef8bd07 commit 5205e08e76ecb472784b7237fc8195c66689aa78 @jamis jamis committed Jun 27, 2005
Showing with 2 additions and 2 deletions.
  1. +2 −2 railties/dispatches/dispatch.fcgi
@@ -22,7 +22,7 @@ class RailsFCGIHandler
trap("USR1", trap_handler)
# initialize to 11 seconds from now to minimize special cases
- @last_error_on = Time.now + 11
+ @last_error_on = Time.now - 11
@log_file_path = log_file_path
dispatcher_log(:info, "fcgi #{$$} starting")
@@ -42,7 +42,7 @@ class RailsFCGIHandler
rescue Object => fcgi_error
# retry on errors that would otherwise have terminated the FCGI process,
# but only if they occur more than 10 seconds apart.
- if !(SignalException === fcgi_error) && @last_error_on - Time.now > 10
+ if !(SignalException === fcgi_error) && Time.now - @last_error_on > 10
@last_error_on = Time.now
dispatcher_error(fcgi_error,
"FCGI process #{$$} almost killed by this error\n")

0 comments on commit 5205e08

Please sign in to comment.