Displaying 20 results from an estimated 2000 matches similar to: "Want feedback on Mongrel patch for handling partial PUT requests"
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)
2006 Nov 26
2
Writing a mod_put HttpHandler
I''m looking at writing a Mongrel handler that mimics the behavior of
the Apache mod_put [1]. It allows for the streaming upload of very
large (GB) files; it also supports resumable upload.
Before I get too involved, I''d like to ask if my reading of the
mongrel source code is correct, i.e. what I want to do isn''t
currently possible.
Looking at the class
2008 Feb 15
1
Socket read returned insufficient data
In the several months I''ve been using Mongrel, I''ve experienced two
crashes. Both were immediately following a "Socket read returned
insufficient data" error from HTTPRequest. Both times, the mongrel
process would hang indefinitely (and not respond to requests) untill
manually killed.
The first instance references a line where I was using
2006 Aug 20
14
http parser
Just thought I''d let you know that your http parser worked great for
creating an http protocol handler for Eventmachine. It wouldn''t take
that much effort to use Eventmachine for Mongrel, might be worth a
shot just to see how it does. A few things would need to be
restructered, like HttpRequest where you read the rest of the body,
and calling the handler. But it
2006 Apr 18
3
install rail behind a proxy
Hello
i try to install rail. I am behin a proxy with no Authorization
C:\rubygems-0.8.11>gem install rails -p http://xxx.xxx.xxx.xxx
Attempting local installation of ''rails''
Local gem file not found: rails*.gem
Attempting remote installation of ''rails''
Updating Gem source index for: http://gems.rubyforge.org
Install required dependency rake? [Yn] y
2009 Feb 13
2
téléchargement et affichage d'image avec HtmlWindow
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
2008 Jul 08
8
POST instead of GET gives 404 (newbie)
Hi,
Using JRuby 1.1 and Rails 2.0, I created a small project in NetBeans
that allows me to generate a dynamic dialplan in XML. In case it
matters, I''m using builder-2.1.2 and activerecord-2.0.2.
Going in the browser to:
http://localhost:3000/routing/dialplan?Caller-Destination-Number=0
Does exactly what I want:
<document type="freeswitch/xml">
<section
2006 Mar 26
4
edge and 1.8.2/1.8.4 issues
I recently upgraded to 1.8.4 to try out mongrel, and so far have been in
a kind of hell where I can''t get my app working!
Currently running (or trying to run):
Ruby version 1.8.4 (i386-mswin32)
RubyGems version 0.8.11
Rails version 1.0.0
Active Record version 1.13.2
Action Pack version 1.11.2
Action Web Service version 1.0.0
Action Mailer version 1.1.5
Active Support version
2007 Aug 21
2
ActionPack raw_post_data_fix.rb#read_body bug with AMF data.
Hey Everyone,
I just found a slight problem with the "read_body" method in
raw_post_data_fix.rb.
This line:
# Fix for Safari Ajax postings that always append \000
content.chop! if content[-1] == 0
This causes problems with Flash AMF binary format. As AMF always appends
a \000 to the stream as well. I''m the developer over at RubyAMF and have
been running into problems with AMF
2015 Jul 26
1
Get term from document by position
mple (see attachment).
>
> Attachments get stripped out by the mailing list, so I?ve made a private gist of the two files here: <https://gist.github.com/jaylett/ce8455b37e2b84422346>.
>
> Actually, when I run it I get 0 matches, which would explain why you?re just getting the start of the document. However if I adjust things (match the stemming strategy for TermGenerator to
2006 Dec 07
6
Response To Form Submission Hanging
Hello,
I am using Mechanize to post a form to a website. When I do this by
hand in my browser the response takes about 35s to come back (it''s a
long page full of tables and graphics). When I do this with
Mechanize, the server starts to respond and then appears to hang.
The obvious conclusion is that my code is wrong but I am reasonably
sure that I haven''t altered it
2006 Jul 27
0
how to render/send an incoming stream of data?
Let''s say I want to proxy a data stream through rails. I am
retrieving the data using HTTPResponse#read_body with a block. This
block gets chunks of the stream as it''s read off the socket. How do I
render/send this data to the end user without storing the whole file
in memory or disk?
thanks,
Tim
2007 Dec 16
0
Integration Testing - hang with post parameters
I''m getting some weirdness with integration testing. The following
works fine if I don''t have parameters, but as soon as I add parameters I
get a hang. Not sure exactly where it is hanging.
NO HANG
post ''user/register''
HANG
post ''user/register'', :user => {:name => ''John Doe'', :email =>
2005 Jul 28
0
IP Phone Advice ??
I'm looking for suggestions for a good IP phone to use with Asterisk which
can display CallerID information on the phone's LCD panel.
I am currently using a Sipura 2000 for all my analog phones and I have
purchased 1 bugdgetone 100 IP phone.
I find the voice quality of the Sipura 2000 to be better than that of the
budgetone. I find myself wanting to use the analog phones instead of the
2009 May 20
1
activeresource-2.3.2 HTTPHeaderSyntaxError
Hi,
I''m upgrading my app from 2.2.2 to 2.3.2 and am having a problem with
ActiveResource.
class FooResource < ActiveResource::Base
self.site = "whatever"
self.element_name = "foo"
end
FooResource.create(:bar => ''baz'')
raises:
Net::HTTPHeaderSyntaxError: wrong Content-Length format
from
2012 Jan 27
2
dealing with Encoding::UndefinedConversionError: "\xA2" from ASCII-8BIT to UTF-8
I''m 99% certain that this is what''s being discussed in
https://github.com/tenderlove/mechanize/issues/168
But I''m not sure what the remedy is. My production app is running on
Heroku, so I need a fix that I can push there. Can someone post
instructions that this neophyte can follow? (I gather I''m supposed to fork
and add the current master version from
2006 Nov 27
5
win32 problems
I''m setting up a Rails app for a client that uses Windows. I''m
getting this error:
c:/ruby/lib/ruby/gems/1.8/gems/mongrel-0.3.18/lib/mongrel/rails.rb:
32: uninitial
ized constant Mongrel::HttpHandler (NameError)
from c:/ruby/lib/ruby/site_ruby/1.8/rubygems/
custom_require.rb:21:in `re
quire''
from c:/ruby/lib/ruby/gems/1.8/gems/mongrel-0.3.18/bin/
2006 Dec 06
5
Win32 gems for mongrel (0.3.18) and mongrel_service (0.3.1)
Hello Users!,
Since the pre-release 0.3.18 (last week) Lot of things happen in
ruby-land (check the DoS security bulletin, please).
Anyway, the win32 folks being left on the side of the road, and cannot
provide feedback of stability due lack of binaries for the latest
releases.
So, I managed to upload the pre-built gem to my host:
http://www.mmediasys.com/releases/mongrel-0.3.18-mswin32.gem
2007 Aug 21
7
rails truncating raw_post_data?
Has anyone ever run into any problems with rails truncating
raw_post_data. My situation is this: I''m the developer for RubyAMF
(wiki.rubyamf.org). Which is a flash remoting application server. With
the rails plugin, it allows flash to talk to a controller and return AMF
data..
So long story short, the flash player makes a request to a rails
controller sending AMF binary format in the