similar to: Patch: Allow overriding of handler dispatch in Mongrel::HttpServer

Displaying 20 results from an estimated 1000 matches similar to: "Patch: Allow overriding of handler dispatch in Mongrel::HttpServer"

2012 Jan 15
1
How to mock out a WEBrick::HTTPServer?
partial code : http://pastie.org/3186140 I want to test a HTTP server, I''m using lower level stuff so I can understand whats going on, then I might move onto FakeWeb/WebMock/etc Its a reverse proxy, so it doesn''t generate the page content. I want to test a/ methods in the class in isolation b/ test that if a HTTP request sent in generates a HTTP request out (suppose should be
2007 Aug 06
4
[Patch] HttpServer.port reports the bound port
This is for when you pass mongrel 0 for the port and the OS assigns an open one. Corey --- mongrel-1.0.1/lib/mongrel.rb 2007-08-05 15:29:59.000000000 -0700 +++ mongrel-1.0.1/lib/mongrel.rb.zero_port_fix 2007-08-05 15:29:23.000000000 -0700 @@ -560,7 +560,7 @@ @socket = TCPServer.new(host, port) @classifier = URIClassifier.new @host = host - @port = port
2008 Sep 03
1
[LLVMdev] Dependence Analysis [was: Flow-Sensitive AA]
On Wednesday 03 September 2008 12:39, Matthieu Delahaye wrote: = > API: This is the matter of providing the possibilities to ask useful > questions, and providing useful answers. [in the pow of the passes that > are using the analysis]. > > The "textbook" version would be: give me the memory dependency(ies) > between these two instructions. With the possibility to
2007 Jan 23
4
Want feedback on Mongrel patch for handling partial PUT requests
By default, Mongrel will delete the HTTP request body and short circuit calling any handlers if a request is interrupted or incomplete. Unfortunately, this breaks any attempt to correctly handle a partial PUT. (BTW, PUT is *way* more efficient for uploads compared to POST which requires a MIME parsing step.) So, about a month ago I wrote up some patches to Mongrel 0.3.18 that allowed
2005 Apr 09
0
newbie question - dispatcher
I install Rails on me Debian, create simply project, and send request from browser. I get from Webrick this ERROR log: [2005-04-09 10:14:15] ERROR MissingSourceFile: no such file to load -- dispatcher ./../config/..//vendor/activesupport/lib/active_support/dependencies.rb:195:in `require'' ./../config/..//vendor/activesupport/lib/active_support/dependencies.rb:195:in
2006 Apr 04
1
More newbie questions.. Calling out to CGI, Reusing Responses, Multi-thread..
What I''m building is essentially a filter. On certain URIs, Mongrel will handle the request completely. On other URIs, I''d like to pass that responsibility off to an external CGI process (be it Rails''s dispatch.cgi, or otherwise). How do I go about that? Second, I''m finding that in several of my handlers I''d like to reuse a response. However, I
2006 Feb 27
0
method dispatch and in-place modification? - unclass, RemoveClass, getDataPart, method dispatch
I have a little problem about method dispatch and "unnessary" copying. Basically what I would like to do is: `[.myclass` <- function(x, i,j, extraopt=TRUE/FALSE, drop=TRUE) { ...do stuff depending on extraopt... value <- Nextmethod("[", x, i,j, drop=TRUE) ... do more stuff depending on extraopt... } I have two general problems: (1) NextMethod() really
2006 Aug 04
0
ArgumentError calling Dispatcher.dispatch
Hello. I am hitting a nasty error wherein the the 2nd sequential request to my rails application is failing with the following error. Note that I am getting this error with both webrick... #<ArgumentError: wrong number of arguments (3 for 1)> ["C:/sdks/ruby/1.8.4/lib/ruby/gems/1.8/gems/rails-1.1.4/lib/webrick_server.rb:115:in `dispatch''" ...and with Mongrel... Error
2010 Mar 24
6
dispatch.cgi, dispatch.fcgi, dispatch.rb not present in Public folder
I''m doing a series of ruby on rails tutorials and it got to a part where i need to edit the following files that should be automatically inside the public folder: dispatch.cgi,dispatch.fcgi,dispatch.rb but I have none of these inside my public folder. Is there a reason for this? And how can i change it so they are back The only files in my public folder at present are 404.html 500.html
2010 Nov 22
1
Cannot start Xend
Hi All, I really could do with any pointers people might have as to the reason for this error. The server was working fine but this appeared after a reboot. The HTTP part in xend-config.sxp is disabled already. Any advice would be appreciated. Thanks, Rob # service xend start Starting xend: Traceback (most recent call last): File "/usr/sbin/xend", line 44, in ? from
2010 Nov 22
1
Cannot start Xend
Hi All, I really could do with any pointers people might have as to the reason for this error. The server was working fine but this appeared after a reboot. The HTTP part in xend-config.sxp is disabled already. Any advice would be appreciated. Thanks, Rob # service xend start Starting xend: Traceback (most recent call last): File "/usr/sbin/xend", line 44, in ? from
2006 Aug 03
0
Can''t set up rails: dispatch.cgi failed
Hi, I''m trying to setup RoR on OpenBSD 3.9 with Ruby 1.8.4 and Apache 1.3. I''ve setup Rails to run as a Virtual Host, and I can view the "Welcome Aboard" page. When I try to access http://<server>/category/ though, I get an "Application error...Rails application failed to start properly" message. Apache.log has this error: [error] (2)No such file or
2006 Aug 05
0
Rails requests return dispatch.cgi (or .fcgi) file contents
I''m running Apache2 with CGI and FastCGI alternatively. I''ve had a problem that I haven''t been able to find more than a single reference to online. When my .htaccess file has the CGI rewrite rule in effect, my Rails app works. When I change to FastCGI, all I get for Rails requests is the contents of the dispatch.fcgi file. Thinking I may have screwed something up
2006 Aug 08
1
dispatch
can anyone please explain me what the dispatch files are for? (lighttpd) or the fastcgi etc files? (the files in public) i am a little at lost when it comes to the server-related issues. thanks, harp -- Posted via http://www.ruby-forum.com/.
2006 Aug 09
0
FastCGI - how to relocate dispatch.fcgi outside of rails app
Howdy. Due to a rather unique hosting setup, I need to relocate the dispatch.fcgifile to a directory outside of /path/to/application/public. The setup looks like: /path/to/content/RailsApp/ -- all application files /path/to/fcgi-bin/RailsApp/ -- dispatch.fcgi I''ve modified dispatch.fcgi to find environment.rb; however, all requests for static files (index.html, javascripts, etc) fail
2006 Jun 21
2
displaying contents of dispatch.fcgi rather than running it
SYSTEM: Apache2/RHEL4/FastCGI latest gem, ruby and rails builds. -- i''ve installed rails on the above system. i get the ''riding on rails'' welcome page, but when i click ''about your applications environment'', it returns the contents of the dispatch.fcgi file, instead of running it. i''ve been struggling with this one for quite some time with
2006 Jun 26
1
Dispatch.fcgi h-e-double hockey sticks...
Hello Everyone ~ Last week I started having a dispatch.fcgi process go out of control on my Linux server. If I don''t catch it the process will eat my RAM, and devour my swap file until the machine becomes non-responsive. I am running Lighttpd and have not had any issues until lately. The logs are not telling me anything useful, and as a quick fix I am running the site using Mongrel,
2006 May 26
0
setup problem, every request trys to download dispatch.fcgi
Has anyone ever seen it where every request tries to download a fcgi file but marked as a .rb file? Im running LightTPD 1.4, Ruby 1.8.4, FastCGI. The lighty config is... var.basedir = "/var/www/sites/" $SERVER["socket"] == "101.0.0.171:80" { var.servername = "stage.butlerandtanner.com" server.document-root = basedir + servername + "/public/"
2006 Apr 07
0
Permissions error on dispatch.fcgi
After changing some ownerships in my rails app directory to try to get Radrails to work I''m getting the following error when I try to run any rails app: [Thu Apr 06 22:16:01 2006] [alert] [client 127.0.0.1] (13)Permission denied: FastCGI: failed to connect to (dynamic) server "/var/rails/tutorial/public/dispatch.fcgi": something is seriously wrong, any chance the
2006 Mar 07
0
dispatch.cgi errors
I''m trying to get my rails app running in regular cgi before moving to fcgi, but i''m getting premature end of script headers errors in my server log. I''m not sure how to debug this, and i would greatly appreciate some help. Of course when i browse to my app, it says: Rails application failed to start properly" So far i''ve done: I can run the console and