similar to: Rails / ActionPack thread safety

Displaying 20 results from an estimated 6000 matches similar to: "Rails / ActionPack thread safety"

2006 Jul 02
2
Flat file as storage backend or what ...
Hi. I''m just starting out with Rails. I''m thinking of writing a web based PIM, partly as a learning experience, partly because I need one. I''ll be using iCalendar and vCard files for for storage because it will let me sync with PDAs, and use other already available PIMs. What would be the best practice for this? a) At the beginning of a session pull all my vevents
2006 Jul 21
8
How to stop webrick daemon
How do you stop a webrick running as -d? I did various searches on google and the mailing list forums and got nothing. Sorry for the noob question. Thank You, Ben Johnson E: bjohnson@contuitive.com -------------- next part -------------- An HTML attachment was scrubbed... URL: http://wrath.rubyonrails.org/pipermail/rails/attachments/20060721/0408fb97/attachment-0001.html
2006 Jun 15
12
Multithreading and DB access in Rails
I just tried writing some controllers, etc. that would allow me to start and monitor background tasks running in new (Ruby) threads, with the idea that I''d eventually manage long-running indexing processes that way. I can kick off such threads OK (by using Thread.new in a routine called by a controller), but it seems like Rails gets huffy if those background tasks and the ordinary
2006 Aug 10
2
Software caused connection abort
Hi Zed or anyone that is also looking at Mongrel, Just want to report something that, although doesn''t crash mongrel, is rather annoying. I am running the latest Mongrel 0.3.13.3 - ruby version on cygwin (yeah, poor me). When I start mongrel_rails with ActiveRecord::Base.allow_concurrency = true in environment.rb, I see a lot of "Error sending file
2006 Aug 09
7
Mongrel and multi apps
Hi, I use Mongrel to serve my Rails applications on my server, but how can I serve more than one application with one mongrel server? Thanks. -jec -- Best regards / Salutations. Jean-Eric Cuendet Senior developer / Technical support Riskpro Technologies SA Av. Louis-Ruchonnet 2 CH-1003 Lausanne Switzerland Direct : +41 21 637 0123 Principal : +41 21 637 0110 Fax : +41 21 637 0111
2006 Jul 21
6
pulling information from LDAP server using Ruby on Rails
Hello, I am currently working on a project using Ruby on Rails. So far, I have a well-populated mySQL database the RoR refers to and the basic scaffolding functions implemented. I also designed views/layouts that furthers the basic scaffolding interface. No problem and no big accomplishment by any means. Now, I want to pull user information from an already existing LDAP server and put that
2011 Dec 13
1
Thread-safety issues with vbox driver ?
Hi, I'm experiencing weird things with the vbox driver when using multiple threads. Following is the snippet of code I experience problems with /*****************************************************/ #include <stdlib.h> #include <stdio.h> #include <pthread.h> #include <libvirt/libvirt.h> void *create_and_destroy(void *arg) { virDomainPtr dom = (virDomainPtr)arg;
2006 Aug 22
11
Multiple mongrels for one app
Hi mongrel-users, This is my first post, so I''m not sure if it''s been asked before, but I can''t find an answer anywhere. If I have one rails application running, one processor I''m running it on, and mongrel is multi-threaded, why should I have more than one mongrel running? Everyone seems to agree on 3-5 mongrels per rails app, but why? I must be
2006 Mar 28
2
Rails and Mongrel
Hi I have some questions regarding threads in Mongrel and Rails. According to the FAQ: "Ruby on Rails is not thread safe so there is a synchronized block around the calls to Dispatcher.dispatch. This means that everything is threaded right before and right after Rails runs. While Rails is running there is only one controller in operation at a time." Isn''t this going
2007 Aug 29
1
What makes Rails'' routes non-thread-safe?
I was reading here and there about the differences between Merb and Rails [1] and became curious about statements such as this: > It is threadsafe with configurable Mutex Locks (Routing is also > threadsafe) Having mucked with the routes system, I had this awful feeling that I don''t understand threading well enough to know if my contribution is "thread safe".
2012 Oct 05
1
Is Rails Logger Thread Safe?
Is Rails Logger truly not Thread Safe? http://log.kares.org/2011/04/railslogger-is-not-threadsafe.html This seems like an issue that should have been picked up quite a long time ago. I just set config.threadsafe! in my config/application.rb and my log output from rails server has completely disappeared. If the logger is not thread-safe, I cannot help but wonder how much of the Rails core is
2006 Aug 06
3
Bug or feature: WEBrick threading (vs script/console thread)
I don''t know whether this is a bug or feature, and I don''t know whether this belongs to Gmailer (http://rubyforge.org/projects/gmailutils) in specific or Rails/Ruby in general. I have an instance method in an ActiveRecord model, that upon a web request using WEBrick, spawns off a thread, in which it invokes Gmailer to perform some processing. What fails is that simply
2006 Sep 01
11
mongrel thread safety and global variables
In environment.rb file, I initialize a connection to some data vending servers, through TCP sockets. The connection object is global and hence the code: #environment.rb $generic_connection = ConnectionClass.instance (singleton class) $generic_connection.connect_me( this call will make the connection) The above approach is to make sure that, only one connection is made to the data vending
2004 Dec 02
2
installing Microsoft Office under wine
I have been unable to install Microsoft Office 2000 under wine on several Fedora Linux machines. The problem seemed to start with the June 2004 release of wine and has persisted for every version I have tried up to and including the latest 12/01/2004 version. I have tried both RPM install and compiling from source with similar results. I have one machine running the May 2004 wine that
2017 Sep 12
3
Unable to load packages RODBC and RODBCext in R
Dear all, Hope you are doing great. I am currently using R version 3.4.1 ("Single Candle") and was trying to install packages RODBC and RODBCext using the following steps: > install.packages("RODBCext") Installing package into ?C:/Users/PaulBernal/Documents/R/win-library/3.4? (as ?lib? is unspecified) also installing the dependency ?RODBC? trying URL '
2004 Dec 02
1
Microsoft Office XP Install problems on wine
I'm trying to install Office XP on Fedora 3, with the 12/1/2004 wine build from the source. I tried the suggestions given by Ronald Nave on Dec 2/2004 (installing DCOM98, windows installer), but to no avail, and I get the following errors, any help/suggestions are appreciated! ------------------------------------ fixme:wininet:FindFirstUrlCacheEntryA ((null), 0x7fd943b0, 0x5b41ea38): stub
2007 May 06
28
mongrel becoming unresponsive
Hello, I''m running mongrel behind apache via proxypass. Every now and then, a spammer tries to proxy traffic through apache, and for some reason, apache forwards the request to mongrel, even though it''s not a site being hosted by me. At times this seems to cause mongrel to become unresponsive, and all requests to the site then fail with a proxy error until mongrel is
2006 May 12
5
How is Actionpack is not thread-safe? @@allow_concurrency?
Hi, I found many references on the Web to the fact that "Rails is not thread-safe". However, I have not found an explanation _why_ it isn''t? What happens if multiple requests are handled concurrently by ActionPack? Assuming that the code I execute in my controller methods is thread safe, is this ok? If not -- what happens? The following makes it sound like the issue is
2017 Sep 12
0
Unable to load packages RODBC and RODBCext in R
I don't use Windows, but this looks like a Windows permissions issue, no? You could try moving them yourself manually or create another library directory that R can access to put them in. ... or wait and hope for advice from someone who uses Windows to give you a definitive answer. Cheers, Bert Bert Gunter "The trouble with having an open mind is that people keep coming along and
2005 Feb 20
0
[LLVMdev] Attempt #1: JIT Thread Safety
This is what I was trying to do when I ran into the HowToUseJIT problem. I've made a first attempt at adding locking to the JIT. Unfortunately, since I do not really understand the structure of LLVM, I could have very easily screwed something up. I touched two classes, the JIT and the ExecutionEngine. I need some help from someone who is more familiar with the code to make sure that I