I've narrowed down the problem I've been having with litespeed to methods where I am using redirect_to. For example, something like:
def create
@workbook.track_results(params[:answer_id])
if @workbook.total == @workbook.items.size
redirect_to history_url(@workbook.game)
else
redirect_to quiz_url(@workbook.items[@workbook.total])
end
end
Maybe 50% of the time with litespeed the redirects die and nothing happens. For example, there is no response listed in firebug. I have no problem with webrick or lightty.
Any ideas what this could be?
Here is an output from my rails development log:
Thanks
Steve
def create
@workbook.track_results(params[:answer_id])
if @workbook.total == @workbook.items.size
redirect_to history_url(@workbook.game)
else
redirect_to quiz_url(@workbook.items[@workbook.total])
end
end
Maybe 50% of the time with litespeed the redirects die and nothing happens. For example, there is no response listed in firebug. I have no problem with webrick or lightty.
Any ideas what this could be?
Here is an output from my rails development log:
Code:
Processing HistoriesController#create (for 127.0.0.1 at 2006-09-11 17:06:15) [POST]
Session ID: 5eeed2ea942628caabd47d2066deff40
Parameters: {"action"=>"create", "id"=>"25", "answer_id"=>"3", "controller"=>"histories"}
[4;36;1mHistory Columns (0.003766)[0m [0;1mSHOW FIELDS FROM histories[0m
[4;35;1mSQL (0.000208)[0m [0mBEGIN[0m
UPDATE users SET `created_at` = '2006-05-23 18:45:41', `play_total` = 10, `login` = 'thomasB', `crypted_password` = 'a0fb71a7ec39a1c2267438c81f647e8fb18cf9fb', `bio` = '', `create_count` = 13, `remember_token_expires_at` = NULL, `salt` = '4dd6bb2d535ab77097623fa7c8856c364aead978', `play_correct` = 10, `edit_count` = 111, `remember_token` = NULL, `note` = '', `is_stats_visible` = 1, `email` = 'thomasb@gmail.com', `password_reset_code` = NULL, `updated_at` = '2006-09-11 17:06:15' WHERE id = 9[0m
[4;35;1mSQL (0.000647)[0m [0mCOMMIT[0m
Redirected to http://localhost:3000/histories/0911061706086998
Completed in 0.07699 (12 reqs/sec) | DB: 0.02403 (31%) | 302 Found
Steve