Displaying 20 results from an estimated 9000 matches similar to: "http parser"
2006 Aug 21
1
The Public Appology To Francis Cianfrocca
Dear Mongrel Users,
It appears that Francis still isn''t satisfied with my attempts to
apologize and he''s now asked me privately to retract my statements.
So, just to be sure he finally gets it:
I retract my statements that Francis and his friends are "shady" and
"desperate for cash". He is in no way a shady guy, having dealt with
this situation with the
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
2006 Oct 19
8
Mongrel::HttpHandlerPlugin
Hi,
I''m trying to write a file upload monitor for mongrel that uses
juggernaut to alert the browser of a change. I''m writing a plugin that
uses Mongrel::HttpHandlerPlugin but it looks like the only method that
gets called is process and that is only when the upload has finished.
I''m setting the following:
@request_notify = true
But I am still only getting process to
2007 Dec 14
21
Some silly benchs (was: 1.9)
Guys,
Just for fun, I tried to see (I know, a silly way to test it) how much
overhead we have calling the C functions of the extensions.
the benchmark script and the results:
http://pastie.caboo.se/128646
The naive C extension:
http://pastie.caboo.se/128647
I compared 1.8.6 (VC6 and mingw builds) against a fresh checkout of ruby trunk.
What I understand from that is 1.9 is slower than 1.8
2007 Dec 28
6
Arbitrary system files readable in 1.0.4 - 1.1.2
I just found a vulnerability in one of my web apps that was running
Mongrel 1.1.2 where I could go to URIs like
/.%252e/.%252e/.%252e/.%252e/.%252e/.%252e/.%252e/etc/passwd and it
would serve the actual /etc/passwd file.
The issue seems to be in lib/mongrel/handlers.rb in the change from
1.0.3 to 1.0.4
req_path = HttpRequest.unescape(path_info)
- if @path
- req_path =
2007 May 21
13
swifty fly?
I heard about a new mongrel plugin or version that''s single threaded and
uses non-blocking IO with events. It''s called something like "swifty
fly". Anyone have a link for it?
Thanks.
2006 May 11
5
Mongrel 0.3.13 Pre-Release -- Out of Hibernation
Hello Mongrel Fans,
After about a Month of busy work, bad computers, moving half my house
across the country, and other dramas, I''m finally pushing out the next
release of Mongrel.
This pre-release has lots of little goodies and the start of some
documentation that should get everyone primed for the big "Mongrel 0.4
Enterprisey Edition 1.2" coming real soon now.
INSTALLING
2006 Oct 04
5
Sites that use Mongrel
It would be an interesting topic. I bet there are quite a few.
I just released one that 1/2 runs on Mongrel. http://direxionfunds.com
It was released before it was _quite_ ready, but the last of the
content is getting inserted today. I am still waffling on how I will
leave it running longterm. Right now it uses a slightly modified
version of the Mongrel http parser with EventMachine to front
2008 Jan 14
3
Reading HTTP Request parameters
Hello
I''ve a client which send this request to a mongrel HTTPHandler :
res=Net::HTTP.post_form(URI.parse(''http://localhost:3000/test''),{"a"=>1,"b"=>2})
But in the handler I can''t read the parameters one by one, I can read
the entire String only :
class Serveur
class MyHandler < Mongrel::HttpHandler
def process(req, resp)
2007 Feb 05
2
recv vs. read in HTTPRequest#read_socket
Hello all,
The following change to Mongrel::HttpRequest:
def read_socket(len)
if !@socket.closed?
data = @socket.recv(len) # <--- formerly @socket.read(len)
if !data
raise "Socket read return nil"
elsif data.length != len
raise "Socket read returned insufficient data: #{data.length}"
else
data
end
else
raise "Socket
2007 Oct 22
30
TST is right out
Hi Zed,
I checked in a pure-Ruby URI classifier to Mongrel trunk. Ola''s Java
port of the TST had some bug, and I don''t think it''s necessary in the
first place. The Ruby classifier is around 25 lines instead of the
400-odd lines for the C extension and the 200-odd for the Java
extension. It uses a Regexp which is perhaps shady:
@matcher = Regexp.new(routes.map do
2007 Nov 21
7
Packet
Hi Mongrels,
Anyone used Packet? http://rubyforge.org/projects/packet
It''s a pure-Ruby (I think) evented framework. It might offer a nice
way forward for 1.9''s system threads, JRuby, and Windows, all at once.
Mongrel''s green thread queue doesn''t have a lot of life left in it.
Evan
--
Evan Weaver
Cloudburst, LLC
2007 Feb 26
9
libevent
Francis,
I read in the list archives back that a future EventMachine release
will support epoll on Linux (i.e., it''s in the trunk).
Better still, is there a possibility that EM will rely on libevent so
that it will be architecture independent (i.e. epoll on Linux, kqueue
on FreeBSD/Mac OS X, /dev/poll on Solaris)? This is how memcached is
implemented, and it would be helpful to be able
2011 Sep 26
2
undefined method `options' for #<EventMachine::HttpClien
Hi , I am writing a rake task to consume twitter stream API. The task
contains the following code:
consumer = OAuth::Consumer.new(CONSUMER_KEY, CONSUMER_SECRET, :site =>
''http://twitter.com'')
access_token =
OAuth::AccessToken.new(consumer,ACCESS_TOKEN,ACCESS_TOKEN_SECRET)
oauth_params = {:consumer => consumer, :token => access_token}
EventMachine.run do
# now,
2006 May 23
8
Can Win32 service more than one rails request at a time?
Hi,
I am trying to run Mongrel on win32 to serve an internal rails application.
We are accessing legacy data, and some transactions can take 5 to 10 seconds. This is holding up every other request. The -n does not seem to be supported on Win32.
Am I missing something, or should I look elsewhere to serve my Rails app on win32?
Thanks,
Walt
--
No virus found in this outgoing message.
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
2006 Dec 25
15
What I Want For Christmas
Calling All Mongrel Minions!
I wanna have some fun and would like this as a Christmas present. The site http://www.workingwithrails.com/ has this lame popularity system that''s kind of irking some of the main Ruby contributors. I think it''s kind of funny, but would like to demonstrate what an army of motivated people can do to these kinds of popularity contests.
So, as a
2006 Jun 30
50
Time To Pick the Mongrel BUGS Mascot!
Bradley Taylor shot me this *goldmine* of ugly ugly ugly dogs:
http://www.sonoma-marinfair.org/uglydogvote.shtml
I *have* to use one of these for the Mongrel BUGS Mascot. He''ll go on
our bug list page and replace the little beetles on the left.
Pick the dog you think best represents a lovable but defective pooch and
reply to this with your +1.
Let the voting begin!
--
Zed A. Shaw
2006 Feb 14
6
Mongrel 0.3.3 -- Bug Fix
Hey Folks,
This is a quick release that fixes a major bug. I forgot to require the
timeout library properly in mongrel.rb so people using Mongrel outside of
Rails would see pauses. 0.3.3 fixes this all up.
The 0.3.3 release also has a small change to the examples/simpletest.rb file
with some gzip response using Ruby''s zlib support. Curious what people
think about this and whether it
2006 Sep 07
5
Mongrel Ultimate Deployment Certified Rails Aptitude Program
I''m proud to announce the official Mongrel certification program:
http://mongrel.rubyforge.org/certified.html
Move quick, seats are filling fast for the RubyConf courses.
--
Zed A. Shaw
http://www.zedshaw.com/
http://mongrel.rubyforge.org/
http://www.lingr.com/room/3yXhqKbfPy8 -- Come get help.