Displaying 14 results from an estimated 14 matches for "http_response".
2009 Sep 09
0
[PATCH] http_response: don't "rescue nil" for body.close
...ns/middleware. Most other
Rack handlers/servers seem to follow this route as well, so
this helps ensure broken things will break loudly and more
consistently across all Rack-enabled servers :)
---
This will be in the next release, so fix your applications/middleware
before hand...
lib/unicorn/http_response.rb | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
diff --git a/lib/unicorn/http_response.rb b/lib/unicorn/http_response.rb
index e0ff805..0d05b2c 100644
--- a/lib/unicorn/http_response.rb
+++ b/lib/unicorn/http_response.rb
@@ -69,7 +69,7 @@ module Unicorn
body.each { |chunk| so...
2008 Mar 11
2
Mongrel 1.1.4, possible bug http_response
Hi,
I found this while digging inside mongrel to provide IO streaming
for mongrel (and thus for Rack and Ramaze):
* In socket_error a local variable done is set, which has no effect.
* done=() always sets to true, where it (for completeness sake) should
honor the passed value.
--- a/http_response.rb 2008-03-11 16:59:24.000000000 +0100
+++ b/http_response.rb 2008-03-11 17:02:20.000000000 +0100
@@ -129,7 +129,7 @@
def socket_error(details)
# ignore these since it means the client closed off early
@socket.close rescue nil
- done = true
+ self.done = true...
2011 Jan 06
1
[PATCH] close client socket after closing response body
...rson at yhbt.net>
Date: Wed, 5 Jan 2011 22:39:03 -0800
Subject: [PATCH] close client socket after closing response body
Response bodies may capture the block passed to each
and save it for body.close, so don''t close the socket
before we have a chance to call body.close
---
lib/unicorn/http_response.rb | 1 -
lib/unicorn/http_server.rb | 1 +
t/t0018-write-on-close.sh | 23 +++++++++++++++++++++++
t/write-on-close.ru | 11 +++++++++++
(Unnecessary unit test case omitted for email)
test/unit/test_response.rb | 18 +++++++++---------
5 files changed, 44 insertions(...
2008 Jan 03
1
Mongrel stops to loading the page in browser
...at 0.0.0.0:3000
** Writing PID file to tmp/pids/mongrel.pid
127.0.0.1 - [Thu, 03 Jan 2008 10:22:49 GMT] "GET /de/page HTTP/1.1"
Thu Jan 03 11:22:51 +0100 2008: Read error: #<Errno::EPERM: Operation
not permitted>
/usr/local/lib/ruby/gems/1.8/gems/mongrel-1.1.2/bin/../lib/mongrel/http_response.rb:137:in
`write''
/usr/local/lib/ruby/gems/1.8/gems/mongrel-1.1.2/bin/../lib/mongrel/http_response.rb:137:in
`write''
/usr/local/lib/ruby/gems/1.8/gems/mongrel-1.1.2/bin/../lib/mongrel/http_response.rb:103:in
`send_body''
/usr/local/lib/ruby/gems/1.8/gems/mongrel-1.1.2/bin/...
2011 Jan 13
5
Unicorn 3.3.1 "Too many open files" error in kgio_tryaccept
...rn-3.3.1/lib/unicorn/http_server.rb:605:in
`worker_loop''
...
My unicorn.stderr.log is 7.6GB, and I rotate it every day...
Before all that started I got:
Read error: #<IOError: closed stream>
/usr/local/ruby-enterprise-1.8.7-2010.01/lib/ruby/gems/1.8/gems/unicorn-3.3.1/lib/unicorn/http_response.rb:37:in
`write''
/usr/local/ruby-enterprise-1.8.7-2010.01/lib/ruby/gems/1.8/gems/unicorn-3.3.1/lib/unicorn/http_response.rb:37:in
`http_response_write''
/usr/local/ruby-enterprise-1.8.7-2010.01/lib/ruby/gems/1.8/gems/unicorn-3.3.1/lib/unicorn/http_server.rb:540:in
`process_client...
2012 Nov 16
0
With streaming on, closed client connections cause Fatal Broken Pipe errors
...50: <!-- after footer -->
/home/dan/dev/skweb/vendor/bundle/ruby/1.9.1/gems/unicorn-4.3.1.2/lib/unicorn/http_response.rb:41:in
`write''
/home/dan/dev/skweb/vendor/bundle/ruby/1.9.1/gems/unicorn-4.3.1.2/lib/unicorn/http_response.rb:41:in
`block in http_response_write''
/home/dan/dev/skweb/vendor/bu...
2010 Jun 23
2
Purpose of "Status" header in HTTP responses?
Hi folks
On line #63 of unicorn/http_response.rb a "Status" header is written to the
socket. A comment in the code explains that some broken clients require this
header and unicorn generously accommodates them.
We?re having the opposite problem. One of our clients using Microsoft Windows
and ASP haven?t been able to connect to our...
2011 Nov 29
1
Error in ROR App
...erver starts,but when i type app url in
browser end enter it shows following error
i don''t know what is issue:-
#<Errno::ECONNABORTED: An established connection was aborted by the
software in your host machine.>
D:/Ruby/lib/ruby/gems/1.8/gems/mongrel-1.1.5-x86-mswin32-60/lib/
mongrel/http_response.rb:137:in `write''
D:/Ruby/lib/ruby/gems/1.8/gems/mongrel-1.1.5-x86-mswin32-60/lib/
mongrel/http_response.rb:137:in `write''
D:/Ruby/lib/ruby/gems/1.8/gems/rack-1.0.0/lib/rack/handler/mongrel.rb:
75:in `process''
D:/Ruby/lib/ruby/gems/1.8/gems/rack-1.0.0/lib/rack/file.rb:83:...
2007 Feb 07
5
Mocking ActiveResource
I want to use ActiveResource in my app. Instead of hitting server
though, I want it to load from a file when I call find. Any clue how
I do that?
Pat
2010 May 10
1
Rails/mongrel/httpd issue - F13, rails 2.3.5
...MethodError: undefined method `[]' for nil:NilClass>
/usr/lib/ruby/gems/1.8/gems/mongrel-1.1.5/bin/../lib/mongrel/cgi.rb:108:in `send_cookies'
/usr/lib/ruby/gems/1.8/gems/mongrel-1.1.5/bin/../lib/mongrel/cgi.rb:136:in `out'
/usr/lib/ruby/gems/1.8/gems/mongrel-1.1.5/bin/../lib/mongrel/http_response.rb:65:in `start'
/usr/lib/ruby/gems/1.8/gems/mongrel-1.1.5/bin/../lib/mongrel/cgi.rb:135:in `out'
/usr/lib/ruby/gems/1.8/gems/mongrel-1.1.5/bin/../lib/mongrel/rails.rb:81:in `process'
/usr/lib/ruby/gems/1.8/gems/mongrel-1.1.5/bin/../lib/mongrel.rb:159:in `process_client'
/usr/lib/ru...
2010 Jun 13
5
script/server vs mongrel_rails start issue
...while evaluating nil.[]>
/usr/local/lib/ruby/gems/1.8/gems/mongrel-1.1.5/bin/../lib/mongrel/
cgi.rb:108:in `send_cookies''
/usr/local/lib/ruby/gems/1.8/gems/mongrel-1.1.5/bin/../lib/mongrel/
cgi.rb:136:in `out''
/usr/local/lib/ruby/gems/1.8/gems/mongrel-1.1.5/bin/../lib/mongrel/
http_response.rb:65:in `start''
/usr/local/lib/ruby/gems/1.8/gems/mongrel-1.1.5/bin/../lib/mongrel/
cgi.rb:135:in `out''
/usr/local/lib/ruby/gems/1.8/gems/mongrel-1.1.5/bin/../lib/mongrel/
rails.rb:81:in `process''
/usr/local/lib/ruby/gems/1.8/gems/mongrel-1.1.5/bin/../lib/mongrel.rb:
159...
2010 Apr 27
3
[PATCH] Add worker interrogation via INFO signals
Hey all,
Below is a proposed patch I worked on over the weekend. Just adding a note here to mention that I''m currently not a subscriber to the mailing list, so please CC me on any replies. Let me know what you all think. This change was made on a local topic branch off of the maint branch. If you''d like to view the change on GitHub, you can do so here:
2013 Nov 05
4
Handling closed clients
We have a service that clients use to upload files. We have a couple of clients that are on slow links and so their upload times out. We get errors in the logs that I''d like to get rid of.
I was hoping that the recent commit 24b9f66dcdda44378b4053645333ce9ce336b413 would help us, but it does not. After digging in a bit, I have some ideas about why and a patch I''d like comments
2011 Aug 12
16
Rack content-length Rack::Lint::LintErrors errors with unicorn
...''
/mnt/data/tanga/current/bundler/ruby/1.9.1/gems/rack-1.2.3/lib/rack/lint.rb:501:in
`verify_content_length''
/mnt/data/tanga/current/bundler/ruby/1.9.1/gems/rack-1.2.3/lib/rack/lint.rb:525:in
`each''
/mnt/data/tanga/current/bundler/ruby/1.9.1/gems/unicorn-4.0.1/lib/unicorn/http_response.rb:41:in
`http_response_write''
/mnt/data/tanga/current/bundler/ruby/1.9.1/gems/unicorn-4.0.1/lib/unicorn/http_server.rb:526:in
`process_client''
/mnt/data/tanga/current/bundler/ruby/1.9.1/gems/unicorn-4.0.1/lib/unicorn/http_server.rb:585:in
`worker_loop''
/mnt/data/tanga/cu...