Displaying 17 results from an estimated 17 matches for "uriclassifi".
Did you mean:
uriclassifier
2007 Apr 20
2
order of registering uri''s matters for URIClassifier ?
...ror in mongrel.
The cause is basically :
@classifier.resolve("/junk") # => [nil,nil,nil]
Instead of :
["/junk", "/", [#<Mongrel::DirHandler>, #<Mongrel::StatusHandler>]]
I''ve attached a unit test that shows this effect by calling the
URIClassifier directly. I''m not sure if this is a bug or a
misunderstanding on my part.
enjoy,
-jeremy
--
========================================================================
Jeremy Hinegardner jeremy at hinegardner.org
-------------- next part --------------
r...
2006 Aug 10
16
Error on Solaris
...aris. I have
made the changes suggested in the joyeur article but it doesn''t make
any difference. The error is below. Does anyone have any idea?
/opt/csw/lib/ruby/gems/1.8/gems/mongrel-0.3.13.3/lib/mongrel.rb:666:in
`register'': undefined method `resolve'' for nil:Mongrel::URIClassifier
(NoMethodError)
from /opt/csw/lib/ruby/gems/1.8/gems/mongrel-0.3.13.3/lib/mongrel.rb:850:in
`uri''
from /opt/csw/lib/ruby/gems/1.8/gems/mongrel-0.3.13.3/lib/mongrel.rb:1018:in
`debug''
from /opt/csw/lib/ruby/gems/1.8/gems/mongrel-0.3.13.3/lib/mongrel.rb:101...
2006 Feb 02
0
Mongrel HTTP Library 0.2.1 (Fancy URI Matching)
...Changes
This release is pretty simple:
* Fixed a few bugs people reported.
* Cleaned up some documentation that people called "juvenile".
* And then redesigned the Trie search so that it finds any handler at
any character in any URI in one search.
* Wrote more extensive tests for the URIClassifier to test out the
new Trie implementation.
This change lays the foundation for pretty much everything I need to
start adding the important components many web application frameworks
need. First up will be the ability to serve files, directories,
cache results, and efficiently upload/recei...
2006 Feb 28
1
New flexible plugin system in the works
...t problems and it is a lot faster
than Plugin factory. The weird class definition syntax is a strange trick I
picked up from the Camping folks and basically means that this plugin
belongs in the "/commands" category. These categories can be fairly
arbitrary and are really just using the URIClassifier.
So, how will it get used? I''m adding an option -L that you can pass a path
and Mongrel will load all the .rb files in that directory for you. All you
then need to do is place your new commands (or other plugins) in this
directory however you want and they''ll be available.
I...
2007 Oct 01
1
Getting started on win32 - without Rails.
Hi,
I''m trying to get started developing my first ruby-powered web-app. I wont
be using Rails for this, at least I don''t see any reason why I should.
However, the "getting started" sections in the documentation only shows
you how to start a Rails application.
My mindset comes from PHP/JSP-type languages where you embed code into
HTML. It seems the way to do this with
2006 Jul 16
1
Mongrel starting problem on new Debian box
...grel I''m getting a weird error I can''t figure out.
Some help please?
-> mongrel_rails start
** Starting Mongrel listening at 0.0.0.0:3000
/usr/lib/ruby/gems/1.8/gems/mongrel-0.3.13.3/lib/mongrel.rb:666:in`register'':
undefined method `resolve'' for nil:Mongrel::URIClassifier
(NoMethodError)
from /usr/lib/ruby/gems/1.8/gems/mongrel-
0.3.13.3/lib/mongrel.rb:850:in `uri''
from /usr/lib/ruby/gems/1.8/gems/mongrel-
0.3.13.3/lib/mongrel.rb:1018:in `debug''
from /usr/lib/ruby/gems/1.8/gems/mongrel-
0.3.13.3/lib/mongrel.rb:1016:in `deb...
2006 Dec 19
1
mongrel_config has no output
...200 OK
Connection: close
Date: Tue, 19 Dec 2006 05:33:16 GMT
Content-Type: text/html
Content-Length: 0
Connection closed by foreign host.
Here is a YAML dump of the $server object:
--- &id001 !ruby/object:Mongrel::HttpServer
acceptor: !ruby/object:Thread {}
classifier: !ruby/object:Mongrel::URIClassifier
handler_map:
/log:
- !ruby/object:Mongrel::DirHandler
default_content_type: application/octet-stream
index_html: index.html
listener: *id001
listing_allowed: true
path: /home/michael/hhp/trebleNation/log
/favicon.ico:
- !ruby/object:Mongrel::Error40...
2007 Oct 22
30
TST is right out
...l real
3.327000 0.000000 3.327000 ( 3.328000)
.
Finished in 3.403 seconds.
J/TST, JRuby:
19 URIs / 170000 requests
user system total real
2.091000 0.000000 2.091000 ( 2.091000)
.
Finished in 2.194 seconds.
--
The benchmark is at the bottom of test/test_uriclassifier.rb, if you
want to look at it. Another surprise is that the speedup is pretty
much linear around these node counts or less. It looks like the
savings were in the static typing more than the TST.
Do you know anyone who''s running a shitload of Mongrel routes in a
single server? Is there a...
2006 Apr 19
8
Win32 Gem Dependencies
Yeah I just noticed that the latest mongrel gem for win32 doesn''t have
the proper dependency for ''daemons''. This of course causes the require
to fail. Any chance at getting this fixed for future gems? :)
Thanks
Josh Ferguson
2006 Jun 30
12
Mongrel 0.3.13.3 -- Ruby Licensed Release
Hello Everyone,
This is the official 0.3.13.3 release of Mongrel.
Mongrel is now released under the *Ruby license* instead of the LGPL.
I''m hoping this increases the adoption of Mongrel even further and
hopefully I can start pushing to get Mongrel included in Ruby directly.
INSTALL
As usual, you install it with your friendly gem install method of
choice:
gem install mongrel
Or
2007 Aug 06
4
[Patch] HttpServer.port reports the bound port
...e 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
+ @port = @socket.addr[1]
@workers = ThreadGroup.new
@timeout = timeout
@num_processors = num_processors
2006 Aug 08
3
Mongrel 0.3.13.3 error on start
...or this and
not mysql. However, I am able to run the application using webrick.
When I try to start it with mongrel, I get the following error:
/usr/local/lib/ruby/gems/1.8/gems/mongrel-0.3.13.3/lib/mongrel.rb:
666:in `register'': undefined method `resolve'' for
nil:Mongrel::URIClassifier (NoMethodError)
from /usr/local/lib/ruby/gems/1.8/gems/mongrel-0.3.13.3/lib/
mongrel.rb:850:in `uri''
from /usr/local/lib/ruby/gems/1.8/gems/mongrel-0.3.13.3/bin/
mongrel_rails:112:in `cloaker_''
from /usr/local/lib/ruby/gems/1.8/gems/mongrel-0.3.13.3/...
2006 Feb 10
22
Mongrel 0.3 -- Runs Ruby On Rails
...ication run. If it don''t then send me your mongrel.log.
Another thing to do is if you get a URL giving you the wrong mime
type then let me know. If you get a malformed response then send me
the result of doing:
> curl -i http://localhost:3000/the/bad/uri
== Big Changes
* URIClassifier had an error in the prefix based search such that "/"
wasn''t getting resolved. Fixed this up and cleaned it.
* DirHandler now supports many more needed features such as mime type
mapping, serving index.html if present, getting the paths right on
"/" mounted dir...
2006 Jul 03
13
problem starting mongrel
...;'m not real sure what''s
going on here. Thanks for any insight into what''s going on.
-j
** Starting Mongrel listening at 0.0.0.0:3000
/usr/lib/ruby/gems/1.8/gems/mongrel-0.3.13.3/lib/mongrel.rb:666:in `register'':
undefined method `resolve'' for nil:Mongrel::URIClassifier (NoMethodError)
from
/usr/lib/ruby/gems/1.8/gems/mongrel-0.3.13.3/lib/mongrel.rb:850:in
`uri'' from
/usr/lib/ruby/gems/1.8/gems/mongrel-0.3.13.3/lib/mongrel.rb:1018:in
`debug''
from
/usr/lib/ruby/gems/1...
2006 Oct 13
4
Broken installation of mongrel 0.3.13.4 on Sun OS 5.9
...config/mongrel_opts.conf (they override command
line).
** Starting Mongrel listening at 0.0.0.0:8085
** Starting Rails with production environment...
/usr/local/lib/ruby/gems/1.8/gems/mongrel-0.3.13.4/lib/mongrel.rb:722:in
`register'': undefined method `resolve'' for nil:Mongrel::URIClassifier
(NoMethodError)
from
/usr/local/lib/ruby/gems/1.8/gems/mongrel-0.3.13.4/lib/mongrel/configurator.rb:152:in
`uri''
from
/usr/local/lib/ruby/gems/1.8/gems/mongrel-0.3.13.4/bin/mongrel_rails:112:in
`cloaker_''
from
/usr/local/lib/ruby/gems/1.8/gems/mongr...
2006 Dec 05
7
mongrel and long lived connections
Hi,
I found this article
http://cyll.org/blog/tech/2006-08-09-themongrelcomet.html on mongrel
and COMET very interesting.
I ran the code, and it worked just as Christopher explained. The one
thing I don''t understand is why mongrel can only handle 1 connection
at a time. I thought that mongrel used a thread per connection.
It appears that each registered handler can only handle 1
2006 Apr 30
82
Mongrel 3.15, Ubuntu and Park place (S3)
...:
** Please login in with `admin'' and password `pass@word1''
** You should change the default password or delete the admin at
soonest chance!/usr/lib/ruby/gems/1.8/gems/mongrel-0.3.12.5/lib/mongrel.rb:584:in
`register'': undefined method `resolve'' for nil:Mongrel::URIClassifier
(NoMethodError)
from /usr/lib/ruby/gems/1.8/gems/mongrel-0.3.12.5/lib/mongrel.rb:720:in
`uri''
from /usr/local/lib/site_ruby/1.8/parkplace.rb:45:in `cloaker_''
from /usr/lib/ruby/gems/1.8/gems/mongrel-0.3.12.5/lib/mongrel.rb:703:in
`listener''...