Displaying 20 results from an estimated 1000 matches similar to: "Sudden Strange Webrick Error: Errno::ECONNABORTED"
2006 Mar 28
7
Is Ruby stable for production use?
Hi,
I realise that Windows is a poor platform and that Webrick is a development,
not production, server. However, we have started seeing this crop up when
perfectly simple page to page links are invoked...
[2006-03-28 08:32:21] ERROR Errno::ECONNABORTED: Software caused connection
abort
/usr/lib/ruby/1.8/webrick/httpresponse.rb:324:in `write''
2010 Feb 08
2
ECONNABORTED: An established connection was aborted
What, exactly, does
ECONNABORTED: An established connection was aborted by the software in
your
host machine.
mean?
So ... let''s start with the most basic of questions: What''s a
connection?
When one has a connection, does there have to be communication
back-and-forth periodically before the connection is terminated? If so
... where is the timeout set?
Is the browser
2011 Aug 15
3
- WEBrick server refuses to launch
Running Ruby 1.8.7, Rails 3.0.7 on a Windows 7 machine - tried going
through an upgrade to Ruby 1.9.2 over the weekend, but ran into
issues, so have since gone back to 1.8.7. After restoring my app and
re-installing all of the gems, the application finally launches with
rails s:
=> Booting WEBrick
=> Rails 3.0.7 application starting in development on http://0.0.0.0:3000
=> Call with -d
2006 Jul 10
3
crashing mongrel
Newbie question here: I''m hitting my rails app and killing mongrel. Any ideas?
Here''s the error:
/usr/local/lib/ruby/gems/1.8/gems/mongrel-0.3.13.3/lib/mongrel.rb:628:in
`accept'': Software caused connection abort (Errno::ECONNABORTED)
from /usr/local/lib/ruby/gems/1.8/gems/mongrel-0.3.13.3/lib/mongrel.rb:982:in
`join''
from
2010 Aug 06
4
Object/Record foreign key IDs set to zero
Hello,
Hope no one minds me just jumping in here with a question.
I''m completely new to Ruby on Rails. I''ve been reading "Simply Rails
2", and following their examples. I reached a point where the unit
tests were unexpectedly failing. Upon investigation, I discovered that
when Rails loads the fixtures, the foreign keys aren''t being populated
with the foreign
2011 Nov 29
1
Error in ROR App
hi all,
i am new to ROR,I have one ROR app developed in old version i upgrade
it with following version:
RubyGems Environment:
- RUBYGEMS VERSION: 1.3.2
- RUBY VERSION: 1.8.6 (2008-08-11 patchlevel 287) [i386-mswin32]
- INSTALLATION DIRECTORY: D:/Ruby/lib/ruby/gems/1.8
- RUBY EXECUTABLE: D:/Ruby/bin/ruby.exe
- EXECUTABLE DIRECTORY: D:/Ruby/bin
- RUBYGEMS PLATFORMS:
- ruby
-
2006 Jul 25
6
Subtract a field from the current time in MySQL?
I have the following:
Table Products:
With a column called "purchased_at" of type "datetime".
Products.find(:all, :conditions => ["? - purchased_at >= 120",
Time.now])
Why doesn''t that work? What I''m trying to do is find records that were
purchased less than or equal to 2 minutes ago.
Thanks for your help.
--
Posted via
2011 Jan 15
3
respond_with javascript
My ajax stopped working when I switched to using respond_with. For my
Votes, I have the create action and the corresponding create.js.erb,
and respond_to :html, :js, :xml in the controller. Heres the log when
I try and create a vote:
Started POST "/stories/3-asdfasdf1111/votes" for 127.0.0.1 at Fri Jan
14 20:46:36 -0800 2011
Processing by VotesController#create as */*
Parameters:
2006 Sep 13
1
Net::HTTPResponse
Hello :) I have a problem with the Net::HTTP library...
The Net::HTTP library [1] uses a Net::HTTPResponse object for all it''s
responses from web servers. This class has many subclasses, such as
HTTPSuccess, HTTPRedirecttion, etc.
When obtaining a response, the library suggests to check what it is by testing
the class of the returned object - using case/when or kind_of? (which it does
2005 Sep 06
6
strange behavior of acts_as_taggable
I was testing my models with this new library and I got:
>> s.tag "warp"
ActiveRecord::StatementInvalid: ERROR: inserción o actualización en la tabla
«tags_stories» viola la llave foránea «tags_stories_story_id_fkey»
DETAIL: La llave (story_id)=(8) no está presente en la tabla «stories».
: INSERT INTO tags_stories ("tag_id", "story_id") VALUES
2006 Apr 19
5
Mongrel 0.3.12.5 -- Pre-Release with File Upload whyness
I''ve got a Mongrel 0.3.12.5 pre-release in the releases directory I''d like
people to try out:
gem install mongrel --source=http://mongrel.rubyforge.org/releases/
This release incorporates why''s changes to allow for uploading files much
more efficiently and for streaming out files via a HttpResponse.send_file
call.
I re-wrote the file upload part what why created to
2007 Mar 26
1
Streaming content
Hello
I''m attempting to write a mongrel plug-in which would stream a response.
At first I was doing this
def process(request, response)
response.start do |head,out|
head[''Content-Type''] = ''text/html''
%w{o m g}.each { |c| out.puts c; sleep 5; }
end
response.done = true
end
But then I looked at HttpResponse and decided
2005 Aug 25
0
multiple refreshs clicks cause errors in WEBrick
Hi all
I am new to rails, so I hope it is not a trivial question...
I am using rails with webrick and MySql4.1 on win XP.
I enter a simple action (with a post method) which fetches some data from a ''users'' table and present it in a rhtml view.
Now when I press the refresh button quickly a few times I get in the command line window errors such as this:
[2005-08-25 17:08:55]
2013 May 07
2
Net::HTTP
I''m looking at the documentation:
http://ruby-doc.org/stdlib-2.0/libdoc/net/http/rdoc/Net/HTTP.html
And I notice two uses of Net::HTTP. Both are using GET requests. But
what''s the difference? When to use which?
Net::HTTP.start(uri.host, uri.port) do |http|
request = Net::HTTP::Get.new uri
response = http.request request # Net::HTTPResponse object
end
uri =
2002 Sep 07
1
rcopy.pl an Perl script for rsync (with XML config)
Hello all,
I have been working on a Perl script called "rcopy.pl" that basically allows
you to configure rsync via an XML file. It's very easy to use. And it's very
usable at this point.
FEATURES:
* allows you to create your own set of rules to backup a system
(synchronize) -- a la 'rdist'
* you can have multiple servers and user accounts for different sources in
one
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
2007 Sep 18
10
Routes
hi all,
I want to move some routing tasks out of the router and into the
controller. The goal is to make Merb feel less like mod_rewrite and
give the user more control at the controller. The new Router is
simple: it takes the path_info (not the whole request) then outputs a
controller class and some parameters from the path matching. The rest
of the routing would be done at the controller level.
2006 Aug 02
1
Modifying Mongrel Examples
Hi,
I am tryinig to work on the Mongrel examples. I am trying to modify
the HttpResponse.
def process(request, response)
response.start do |head,out|
if request.params["REQUEST_METHOD"] == OPTIONS"
else
end
end
One can detect that the request is OPTIONS like this, but how does one
generate the custom response by using HttpResponse.
Please help.
Shubham
2010 Mar 18
13
ERROR NoMethodError: private method `gsub!' called
I have just upgraded to Ruby 1.8.7 and Rails 2.2.2. My previous project
was at Ruby 1.8.6 and Rails 2.0.2. My platform is Windows and Webrick
for development.
When I run Webrick, the server starts without error, the application
runs, database connections work and I can click through the pages and
display data. But it does not serve any stylesheets or javascript
files. What''s
2007 Nov 23
5
Comet style requests with mongrel
Hi,
I''ve been doing some experiments with php and if can use something like
<?php
for ($i = 0; $i < 100; $i++) {
echo "hello world";
flush();
sleep(10);
}
?>
to keep a http link open for an arbitrary amount of time and
routinely display "hello world" in the browser window.
Is is possible to write a mongrel handler to do something similar?
Thanks