Displaying 20 results from an estimated 2000 matches similar to: "Socket read returned insufficient data"
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
2009 Jul 01
0
unicorn 0.9.0 (experimental release)
Unicorn is a Rack HTTP server for Unix, fast clients and nothing else[1]
We now have support for "Transfer-Encoding: chunked" bodies in
requests. Not only that, Rack applications reading input bodies
get that data streamed off to the client socket on an as-needed
basis. This allows the application to do things like upload
progress notification and even tunneling of arbitrary stream
2009 Jul 01
0
unicorn 0.9.0 (experimental release)
Unicorn is a Rack HTTP server for Unix, fast clients and nothing else[1]
We now have support for "Transfer-Encoding: chunked" bodies in
requests. Not only that, Rack applications reading input bodies
get that data streamed off to the client socket on an as-needed
basis. This allows the application to do things like upload
progress notification and even tunneling of arbitrary stream
2006 Apr 15
1
Begin with Autocompleter
Hi list:
I''m a young developer that need a little help with scriptaculous "Autocompleter". I work with PRADO framework (http://www.xisc.com) and PHP as a script language. Now this is a little function in JavaScript for make a AJAX call and show the results without reload the entire page. See below:
1 function makeRequest(url,element) {
2 var http_request = false;
3 if
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 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
2006 Nov 20
5
RMagick load problems?
I have a page (model: daily_progress_chart) that uses RMagick and
ImageMagick to create a chart using RVG. A few days ago (after some
updates to Rails), this chart stopped working on both my development
machine (MacBook Pro) and the production server (Gentoo Linux). I get
the following error messages. I am totally lost, but I assume that there
is a problem with RMagick. Any ideas anyone?
On
2010 Jun 02
8
Read error: #<TypeError: can't modify frozen string> raised from HttpParser
Hey guys,
Started running unicorn in a production server like two weeks ago.
It''s been running smoothly, but looking at the logs found 44
exceptions like this:
E, [2010-06-02T16:17:15.117071 #22680] ERROR -- : Read error:
#<TypeError: can''t modify frozen string>
E, [2010-06-02T16:17:15.117270 #22680] ERROR -- :
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
2006 Apr 29
3
Feedtools question
I use feedtools to generate the feeds and read them,and now they can not
work well:
This is the code for feed generating:
class FeedsController < ApplicationController
def userrss
@user = User.find_by_id(params[:id])
@articles = @user.articles(:all,:order => ''updated_at desc'')
@headers["Content-Type"] = "application/xml; charset=utf-8"
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
2008 Jan 24
1
NoMethodError (undefined method `to_sym' for {"6"=>"1"}:Hash
I''ve got a search form that was working on rails 1.2.6, but since
upgrading to 2.0.2, I''m getting this error when I post my form. Here''s
the full error:
Processing SearchController#results (for 24.173.26.226 at 2008-01-24
14:51:23) [GET]
Session ID:
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
2002 Mar 08
2
Cannot run OpenSSH 3.1p1 on Solaris 8, Irix 6.5.14, Irix 6.5.4, SunOS 4.1.3_U1 - ssh-rand-helper child produced insufficient data
I have successfully compiled OpenSSH 3.1p1 for the following systems:
Solaris 8
Solaris 7
Irix 6.5.14
Irix 6.5.4
SunOS 4.1.3_U1
Unfortunately, the new sshd is not working on any of the above systems
with the exception of Solaris 7. (I then put the Solaris 7 executables
on Solaris 8, and they worked there too.)
This is the error I'm getting:
$ /usr/etc/sshd -D -d -d -d
debug3: Seeing PRNG
2008 Mar 04
2
Why would ActiveRecord connect to Postgres as root?
My databases.yml makes no mention of root and in my dev environment
everything works fine, however following a deployment with Capistrano
about an hour ago, I get the following error:
PGError in HomeController#index
FATAL: role "root" does not exist
/usr/lib/ruby/gems/1.8/gems/activerecord-2.0.2/lib/active_record/
connection_adapters/postgresql_adapter.rb:713:in `connect''
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
2008 Feb 11
3
can't update my data base using "update_attributes"
Hello,
I have this problem that my rails application works fine in development
environment on my local Linux and windows system but when I uploaded it
to work on the server in production environment I have this problem as
listed in the pasted log file at the end of this entry:
NoMethodError (undefined method `[]'' for nil:NilClass):
/app/controllers/admin_controller.rb:201:in
2007 Nov 21
3
Mongrel Timeout?
Hi,
I am using a railsapp to call an external app and print some barcode-labels.
My problem is, after a while there seems to be a timeout. Then I need to
stop the Mongrel-Server and restart it.
Below you can see the error message, when i stop the server.
Has somebody seen this before?
Greetings,
Oli
C:\etikett>mongrel_rails start -d -e production
** WARNING: Win32 does not support daemon