similar to: Bug or feature: WEBrick threading (vs script/console thread)

Displaying 20 results from an estimated 10000 matches similar to: "Bug or feature: WEBrick threading (vs script/console thread)"

2006 Aug 08
4
New Release
Folks- I just pushed out a new release last night. THis is a bug fix release as well as some new features that have come up that people need. I made the MiddleMan class include Singleton so it is now a true singleton. What this means is that the autostart stuff now works correctly because you can always get the same MiddleMan instance from anywhere within the drb server including your
2006 May 30
4
Rails / ActionPack thread safety
Hi all, Both the rails book (1st Ed) and the docs on the rails site (*and* the Mongrel FAQ) tell me that rails (& ActionPack /ActiveRecord) is not threadsafe. Since I need lots of worker threads in the app I''m working on (details at the end of this mail) this poses quite a problem for me. Is the lack of thread safety a conscious design decision (kind of understandable for rails
2006 Aug 08
2
"include DRbUndumped" error
Hi, I am getting my hands on trying the cool BackgrounDrb plugin. Following various discussions and suggestsion, I included "include DRbUndumped" in my ActiveRecord model. However, the following exception occurs after I tried this and hit the page that uses this model. Does anyone know why this is so? Is it possible that an object cannot be DRbUndumped (that would mean, we
2006 Aug 15
5
ActiveRecord inheritance
Hello, I got the following issue and I do not know how to resolve it: #1. created parent class (AccountExtended) for some my models (lib/classes_lib.rb): class AccountExtended < ActiveRecord::Base def self.findByAccount end end #2. created model Country: require ''lib/classes_lib'' class Country < AccountExtended end #3. and added a test controller what shows
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 Jul 24
12
RadRails
Hi, i was hoping someone could reffer me to a place i could learn about the radrails application/editor/enviornment/... i was looking around for a good editor/etc for developing my applications, and i somehow stumbled up upon radrails ... at a first look, i am pleasantly shocked to see how easy developing applications might be, but i was hoping to give it (the first impression) a even
2007 Feb 22
33
Scaling Puppet 0.22.1 to hunderdes of nodes.
Hi, My environment is composed of ~250 workstations hitting a single puppetmaster server, which has been working fairly well up until now. The most recent change has been a migration of a lot of remote file copy objects which were previously handled with cfengine. client side puppetd calls to the puppetmaster.getconfig method are taking unreasonably long, on the order of 2-3 minutes. It
2006 Feb 27
15
Webrick in production?
Would you bother to setup a fastcgi for a "intranet accessible" application that is like to get < 100 hits a day? David
2007 Mar 12
7
Capistrano Hanging on Deployment
Hello ~ I am using the Capistrano recipe outlined in this post to restart my backgroundrb server: http://rubyforge.org/pipermail/backgroundrb-devel/2007-February/000718.html My Version: ~~~~~~~~~~~~ task :before_restart, :roles => :app do restart_backgroundrb end task :start_backgroundrb, :roles => :app do sudo "nohup
2006 Apr 07
0
webrick, cross-thread violation on rb_thread_schedule()
Hi all, Anyone else seen this? Although it happened while serving Rails, I figured a core dump caused by webrick should be posted to ruby-talk as well. It happened after I hit Ctrl-C to kill the webrick server, after a failed attempt to invoke a web service through a web page. Below are the last two log entries from the development.log file. Any ideas? Dan >/opt/bin/ruby
2005 Dec 28
2
where is WEBrick (daemon mode) output? not in log/server.log
I am running WEBrick in daemon mode (with the -d option). Where is the server output that would ordinarily be on my console if I ran without the -d option? APP_ROOT/log/server.log is empty and not being appended to, though it is owned by the same user WEBrick is running as and has write permissions. The only files in APP_ROOT/log are: development.log production.log server.log test.log Where
2006 Jun 07
1
Ruby threads?
First off, Ezra, thank you for putting out BackgrounDrb. Looks like a very useful framework. I have a newbie question about ruby threads. Are there any general things to avoid doing when using ruby threads and rails? Also specifically, will using BackgrounDrb avoid the socket problem described in this link (extracted from Rails wiki):
2006 Mar 03
1
starting webrick from ruby (tar2rubyscript.rb)
I am using tar2rubyscript to package up a rails application and run it as one file from the server. If you run script/server and have lighttpd install it will start lighty instead of webrick. So, thanks to Erik Veenstra''s suggestion, I add ARGV.unshift("webrick") to the init.rb file to force webrick to start: ARGV.unshift("webrick") load "script/server"
2005 Mar 02
3
App behaves differently on Apache and Webrick
When running on the Webrick server (script/server), my app works fine. When running on Apache 2.0.52, I get the dreaded ''unitialized constant Merge'' error. Merge is the name of my model, the controller is MergesController. The deadline looms, any help appreciated! Thanks! Regards, JJ
2006 Feb 10
2
Sudden Strange Webrick Error: Errno::ECONNABORTED
Hello, I''ve been developing an application (on Windows), and everything was going pretty well, but I suddenly began getting this weird error back from Webrick after submitting something through ajax, and only through ajax. I''m submitting a form through ajax, and it is being process properly - with all the interaction with the database happening without problem. The response
2006 Mar 21
3
Do module source code changes require reboot of WEBrick?
Assume that I refactor some code into a module and "require it into" my controller. Do I then need to restart my WEBrick server each time that I change the module? Thanks, Wes -- Posted via http://www.ruby-forum.com/.
2006 Jun 23
2
WEBrick hangs with OCI8?
Has anyone experienced "hangs" with the WEBrick/OCI8 combination? The sequence of actions I perform to consistently get WEBrick to hang is: 1. start WEBrick 2. list a table form my Oracle 10g DB 3. startup sqlplus and update a few records in the table 4. go back to my browser and reload the table Here none of the chances I made directly to the table are reflected in the listing.
2006 Feb 19
5
Memory use: WEBrick vs Apache
Hello, >From purely a memory consumption standpoint, is it generally more efficient to run a simple Rails app using WEBrick alongside a separate apache installation or to run Rails under FCGI and use Apache to bridge to the Web? I have looked through lots of docs and old forum posts. Most seem to center on just getting Apache+Rails running, or on speed. I am really not concerned about my
2008 Jul 21
2
webrick needs 80 seconds for starting
ruby script/console webrick after 23 seconds: => Booting WEBrick... after 78 seconds: => Rails application started on http://0.0.0.0:3000 => Ctrl-C to shutdown server; call with --help for options [2008-07-21 08:07:17] INFO WEBrick 1.3.1 [2008-07-21 08:07:17] INFO ruby 1.8.6 (2007-09-24) [i386-mswin32] [2008-07-21 08:07:17] INFO WEBrick::HTTPServer#start: pid=4664 port=3000
2006 Jul 01
5
how can i set the default protocol of WEBrick to https?
On my server, stunnel is running to accept HTTPS (port 443) connection from clients and redirect them to localhost:80. And on port 80 of my server, WEBrick is running to accept HTTP connection. In such situation, WEBrick generates URLs beginning with ''http://'', not with ''https://''. So one can access to ''https://myserver/'', but when he click on