search for: request_aborted

Displaying 2 results from an estimated 2 matches for "request_aborted".

2006 Sep 20
0
boy, that mongrel_upload_progress handler sucks!
...a simple way to monkey patch that in: # config/mongrel_upload_progress.conf # yes, this file is being used with -S meaning it''s an actual ruby file. # So, why don''t I use the rb extension? Hell if I know :) Mongrel::HttpHandler.class_eval do # add the default stub method def request_aborted(params) end end # patch the monkey Mongrel::HttpRequest.class_eval do def initialize_with_abort(params, socket, dispatcher) initialize_without_abort(params, socket, dispatcher) dispatcher.request_aborted(params) if @body.nil? && dispatcher end alias_method :initialize_with...
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