[Rails] Webrick in production?

John-Mason P. Shackelford john-mason at shackelford.org
Sat Mar 4 21:25:18 GMT 2006


I wonder if anyone would clarify what is meant by the assertion that
ActionPack is not  thread-safe. A comment in the Rails source seems to
indicate otherwise. I have not read enough of the source myself to
understand what all of the issue are.

//root/trunk/actionpack/lib/action_controller/base.rb

lines 257-261

> # Controls whether the application is thread-safe, so multi-threaded servers like WEBrick know whether to apply a mutex
> # around the performance of each action. Action Pack and Active Record are by default > thread-safe, but many applications
> # may not be. Turned off by default.
> @@allow_concurrency = false
> cattr_accessor :allow_concurrency

--
John-Mason Shackelford

Software Developer
Pearson Educational Measurement

2510 North Dodge St.
Iowa City, IA 52245
ph. 319-354-9200x6214
john-mason.shackelford at pearson.com
http://pearsonedmeasurement.com


More information about the Rails mailing list