Jeremy Kemper
5650bc9094
r1588@asus: jeremy | 2005-07-02 03:14:45 -0700
...
Optional periodic garbage collection for dispatch.fcgi. Graceful exit on TERM also (a la Apache1). Ignore signals the platform does not support, such as USR1 on Windows.
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@1592 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
2005-07-02 04:52:14 +00:00
Jamis Buck
3cc47a4297
Use SIGHUP to dynamically reload an fcgi process without restarting it. Refactored dispatch.fcgi so that the RailsFCGIHandler is in the lib dir.
...
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@1565 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
2005-06-29 11:07:20 +00:00
Jamis Buck
5205e08e76
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
2005-06-27 11:32:39 +00:00
Jamis Buck
d8472f0b6e
RailsFCGIHandler (dispatch.fcgi) no longer tries to explicitly flush $stdout (CgiProcess#out always calls flush)
...
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@1538 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
2005-06-27 09:38:03 +00:00
Jamis Buck
ce44079818
Missing parameter for trap_handler in dispatch.fcgi
...
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@1481 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
2005-06-22 11:26:00 +00:00
Jamis Buck
f69f384872
Refactored dispatch.fcgi. Added unit tests for dispatch.fcgi. Added trap to recognize HUP as a graceful termination command.
...
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@1479 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
2005-06-22 11:18:01 +00:00
David Heinemeier Hansson
6c473eb410
Made dispatch.fcgi more robust by catching fluke errors and retrying unless its a permanent condition. [Jamis Buck] Allow graceful exits for dispatch.fcgi processes by sending a SIGUSR1. If the process is currently handling a request, the request will be allowed to complete and then will terminate itself. If a request is not being handled, the process is terminated immediately (via #exit). This basically works like restart graceful on Apache. [Jamis Buck]
...
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@1284 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
2005-05-04 11:10:13 +00:00
David Heinemeier Hansson
4043b5cdb3
Fixed the dispatch.fcgi use of a logger
...
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@981 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
2005-03-23 00:54:05 +00:00
David Heinemeier Hansson
c006bae4b8
Added additional error handling to the FastCGI dispatcher to catch even errors taking down the entire process
...
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@969 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
2005-03-21 17:46:31 +00:00
David Heinemeier Hansson
5da277b182
Added begin/rescue around the FCGI dispatcher so no uncaught exceptions can bubble up to kill the process (logs to log/fastcgi.crash.log)
...
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@831 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
2005-03-04 12:12:55 +00:00
David Heinemeier Hansson
70039d1e91
Fixed WEBrick servlet slowdown over time by restricting the load path reloading to mod_ruby #372
...
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@342 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
2005-01-06 15:56:57 +00:00
David Heinemeier Hansson
b8f8776f0c
Renamed public/dispatch.servlet to script/server -- it wasn't really dispatching anyway as its delegating calls to public/dispatch.rb
...
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@186 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
2004-12-16 15:45:55 +00:00
David Heinemeier Hansson
912a567252
No longer needed to explicitly pass the session defaults as the error screen was removed
...
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@118 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
2004-12-12 12:52:40 +00:00
David Heinemeier Hansson
e7444da160
New error checking removes the necessity for giving a specific error page along to the dispatcher
...
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@71 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
2004-12-07 15:35:40 +00:00
David Heinemeier Hansson
a6f718cfa0
Make the dispatch.rb behave after being run by the WEBrick dispatcher
...
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@64 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
2004-12-07 12:03:57 +00:00
David Heinemeier Hansson
0ffb6c1625
Syntax errors and other exceptions thrown outside of an action are now gracefully handled by the dispatcher
...
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@51 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
2004-12-06 18:25:01 +00:00
David Heinemeier Hansson
5b38d85571
AbstractApplicationController and the individual controllers are now completely reloaded on each request if "reload_dependencies" is set to true. This makes it possible to REMOVE methods and constants and have the changes reflected. Beaware that this is still not possible for models, though.
...
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@31 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
2004-11-30 17:19:01 +00:00
David Heinemeier Hansson
db045dbbf6
Initial
...
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@4 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
2004-11-24 01:04:44 +00:00