Displaying 20 results from an estimated 20000 matches similar to: "Thread question"
2006 May 13
6
Asking for help again about my thread debug
As http://www.ruby-forum.com/topic/65495 has shown,I have drawn into
trouble about my thread debugging for some days,and need help to solve
it urgently!
This thread problem comes from the design requirements that my web
application will get the rss feeds read which are generated by the web
application itself.
http://www.ruby-forum.com/topic/63984 has shown my code,and the key code
is the
2006 Apr 06
4
Mongrel Web Server 0.3.12.3 -- Thread Tracking and Debugging
Hello Everyone,
Mongrel is getting closer and closer to being a rock solid release. My goal
is to release 0.4 as "production ready" by Canada on Rails. Please report
any problems or suggestions you have. There won''t be any major features or
improvements just fixes and code reviews to repair any found bugs or
security concerns.
People interested in Mongrel should look at
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
2006 Mar 12
2
InstantRails works with WEBrick, fails with SCGI
I have an app that I''ve been developing for some time with RADRails and
WEBrick locally. I wanted to take it to Apache and following the
following steps:
1) Downloaded and extracted InstantRails.
2) Started and tested cookbook with SCGI. Works great.
3) Copied my app over to rails_apps directory.
4) Added a virtual host to Apache identical to cookbook (just using port
9999
with
2006 May 28
5
Rails, ActionController::Base.allow_concurrency and mongrel
Hello all,
Are you aware of the rails ActionController::Base.allow_concurrency option ?
If this option is true, rails is able to process simultaneous multiples
actions.
It appears that rails is thread-safe (if the user application is), and
that this option is mostly unknown.
Webrick take care of this option in rails-1.1.2/lib/webrick_server.rb at
line 80 :
REQUEST_MUTEX.lock unless
2006 Jul 07
3
ActiveRecord thread-safety
Hi,
I want to use ActiveRecord outside Rails. The application is
multithreaded, so database access has to be thread-safe. I read in a few
places ActiveRecord in fact should be thread-safe and I gave it a try,
but my findings indicate ActiveRecord is NOT thread-safe.
The following test-script fails every with a lost MySQL-connenction:
require ''rubygems''
require_gem
2006 Apr 12
4
Instant Rails SCGI Problem
I have installed instant rails and configured it
http://instantrails.rubyforge.org/wiki/wiki.pl?Getting_Started
I can get typo and webrick to work on webrick localhost:3000 but cant
get anything to work with scgi.
When i start the scgi server i get a blank dos window screen. When i
type www.mycookbook.com into the browser i get the following
Unable to connect
Firefox can''t
2006 Mar 07
0
production.log says status 200, browser says 500?
I have a long running operation (more than a minute) that is running in
a request. The operation completes according to the log and the log says
that it returns http status 200. Sometimes an error message is written
after the 200 log message (included at the end of this message). But the
browser get a status 500 from the Apache server. We''re using Apache with
SCGI on Windows doing
2005 Nov 02
1
Windows, Segmentation Faults, config.load_paths and config.cache_classes
I am doing some testing with the rails trunk, version I switched to
because of memory leaks in 0.13.1 under linux environment.
Right now the application is running fast and steady under linux, with
no memory leaks using SCGI Rails Runner 0.4.3 from Zed, BUT it has
become unusable under Windows (our main development environment) where
I am getting a lot of segmentation faults.
BUT the problem
2006 Apr 17
5
Strange question on file_column
I have met a very strange problem on file_column usage.
After I have added
file_column :image
to the model,everything is ok.
But after I added more:
file_column :image, :magick => {:versions => {
:thumb => {:size => "50*50"},
:medium => {:size => "640*480>"}}}
I can not even start the whole website! Here is the
2006 Feb 28
6
scgi+lighttpd+windows - why wont it work?
two problems, pls help...I''m under big pressure at work to fix this!
I''m having trouble getting scgi and lighttpd running on windows - here''s
what I did:
On Win XP, I installed ruby, rubygems, and setup my rails app. All works
fine with webrick.
I then did: gem install cmdparse and gem install highline (as required
for the scgi_rails gem according to
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
2005 Dec 30
2
scgi apache routes help needed
I''m trying to get an application running in a sub directory of a site using
apache and scgi. The application runs fine with webrick.
I have a site. Let''s call it "mysite.org". There is a variety of content on
that site.
I would like to add a rails application to that site. Let''s call the
application "myapp".
So we will have urls of the form
2006 Aug 14
0
SCGI on Apache 2 send_file Error
Hi,
My program send s PDF file to the browser using send_file. Everything
works fine in Webrick but when I switch to SCGI/Apache, the PDF file just
does not get streamed to the browser. I checked the error logs and this is
what I got from server.log
Mon Aug 14 12:51:24 2006] [error] [client 127.0.0.1] malformed header from
script. Bad header=%PDF-1.3: 26, referer:
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 Apr 15
8
Instant Rails on Win XP SP2
I am trying to run instant rails on windows xp SP2. I can get the
cookbook and typo sample sites to work with webrick but not with scgi.
When i click the start with scgi i get a blank dos window and typing
www.mycookbook.com returns
Firefox can''t establish a connection to the server at
www.mycookbook.com.
This suggests that apache is not even running even though the green
light is
2006 Jan 20
0
Problem with RubyOnRails + SCGI + Apache
Hi!
This is my first post on this Mailing List and I hope I don''t make any
mistakes.
At the moment I''m working on a Homepage Test Framework which is based on
RoR and Watir. Everything is working on an Apache + SCGI. Normally I
start
a Test with Ruby Code in Watir and the test returns a result. But when
the test takes too long (exactly after 1min), i get some errors.
Error
2005 Oct 15
1
Installing Typo on Instant Rails
I don?t know how to post following some thread.
From where can I answer some specific message ? If somebody can help
me, please
Well, I have followed the instructions from Ed for installing typo,
It works, but I have problems with stylesheets when I am logged-in doing
the administrations functions in the blog.
I remember the same when I tried typo using fastcgi, CSS Stylesheets
seem doesn?t
2005 Nov 15
11
Collecting thread: Too many open files (Rails+SCGI crash)
I have a problem with running Rails 0.13.1 with scgi_rails 0.4.3 and
Apache. After running for some time (more than a day), the SCGI
process stops with the following error (from scgi.log):
--
[ERR][24189] Collecting thread: Too many open files
[ERR][24189] /usr/local/lib/ruby/gems/1.8/gems/scgi_rails-0.4.3/lib/scgi.rb:188:in
`accept''
2006 Jan 10
13
InstantRails 1.0 problems...
Hi,
I have installed InstantRails 1.0 Final on Win XP (Home SP2) and Win 2K 2000.
I was able to get the two apps (cookbook, typo) work fine with Webrick but not with SCGI server. I tried changing the SCGI settings through the InstallRails.exe console so that the Runtime Mode: would be "development" instead of "production" and SCGI port: to 5000 instead of 9998.