Displaying 7 results from an estimated 7 matches for "simplehandl".
Did you mean:
simplehandler
2006 Jun 13
1
mongrel_upload_progress & plugin question in general
...s trying to figure it out, I wrote my own test plugin to
mess around with the general plugin system and what I think it is is
that the handlers aren''t registering with a particular uri. In the
Rdoc for mongrel there is the following code:
require ''mongrel''
class SimpleHandler < Mongrel::HttpHandler
def process(request, response)
response.start(200) do |head,out|
head["Content-Type"] = "text/plain"
out.write("hello!\n")
end
end
end
h = Mongrel::HttpServer.new("0.0.0.0", "3000...
2006 Feb 21
9
Checked mongrel_rails_service drafts
...d the _svc script is
actually the service.
The controller uses Mongrel Commands as requested by Zed, but the
service was simplified for debugging purposes, later will merge and
refactor both files.
The environment defaults to production, so if wanted to run it on
other, you must explicit so.
The SimpleHandler start and stops ok, but still trying to find why CGI
handler (Rails) make it fail during service stop.
Will look into this tomorrow, now need a few hours to sleep ;-)
--
Luis
2007 Nov 09
0
starting/stopping/registering Mongrel for HttpHandler
...ently learning Ruby and writing an app that simply uses
Mongrel''s HttpHandler class to create simple ruby servlets. At the end
I have been using code similar to the example in simpletest.rb:
h = Mongrel::HttpServer.new("0.0.0.0", "3000")
h.register("/test", SimpleHandler.new)
#h.register("/files", Mongrel::DirHandler.new("."))
h.run.join
My question:
Can I accomplish the equivalent to the lines above using
mongrel_rails with the correct params, or will that only work for a
Rails app? I know I can start mongrel with host and port, but how t...
2006 Feb 22
8
Temporary win32 gems up.
Hey,
I did some pre-compiled gems for both Mongrel and win32 service, wrote some
quick instructions, and threw everything onto a (Mongrel hosted) temp site.
Please go hit:
http://zedshaw.homelinux.org:3000/files/win32_howto.html
And give the instructions a shot. Luis should have the stuff moved around
and then we''ll have a nice clean install and set of instructions for all
this.
Any
2006 Feb 02
0
Mongrel HTTP Library 0.2.1 (Fancy URI Matching)
...ssifier
The URIClassifier now lets you attach HttpHandlers (well, any object
really) to any URI at pretty much any point. For the majority of
cases people will just attach a few URIs like this:
h = Mongrel::HttpServer.new("0.0.0.0", "3000")
h.register("/test", SimpleHandler.new)
h.run.join
Which is the way things always worked anyhow. The big change though
is that you can load up handlers at any individual character, and the
longest match wins. So, you can even do this (in theory):
h.register("/test;mystuff;thosestuffs", WeirdHandler.new)
The ma...
2006 Jan 31
11
Mongrel HTTP Library 0.2.0 (Fast And RubyForgified)
...ly
functioning and should be easy for people to use. It does not
support the CGI library yet but I''ve got devious evil plans to set my
skills on the CGI library as well.
== Example
This example is from the examples/simpletest.rb file:
require ''mongrel''
class SimpleHandler < Mongrel::HttpHandler
def process(request, response)
response.start(200) do |head,out|
head["Content-Type"] = "text/plain"
out.write("hello!\n")
end
end
end
h = Mongrel::HttpServer.new("0.0.0.0", "3000...
2007 Mar 06
59
Memory leaks in my site
Hi all,
My environment is ruby-1.8.4, rails 1.2.2, mongrel 1.0.1, linux 2.6. Now, i
have a problem on memory leaks with mongrel. My site is running 5 mongrel
processes on a 2G RAM machine, the memory of each process grows from about
20M to about 250M, but it never recover to the initial 20M, so i had to
restart the mongrel processes once per day. The load is about 1M hits per
day.
Waiting for