yahns Ruby server user/dev discussion
 help / color / mirror / code / Atom feed
Search results ordered by [date|relevance]  view[summary|nested|Atom feed]
thread overview below | download mbox.gz: |
* [ANN] yahns 1.8.0 -_- sleepy app server for Ruby
@ 2015-06-11 19:58  4% Eric Wong
  0 siblings, 0 replies; 2+ results
From: Eric Wong @ 2015-06-11 19:58 UTC (permalink / raw)
  To: ruby-talk, yahns-public

A Free Software, multi-threaded, non-blocking network application server
designed for low _idle_ power consumption.  It is primarily optimized
for applications with occasional users which see little or no traffic.
yahns currently hosts Rack/HTTP applications, but may eventually support
other application types.  Unlike some existing servers, yahns is
extremely sensitive to fatal bugs in the applications it hosts.

minor updates

 Most notably, the Rack response body is now closed during rack.hijack.

   Middlewares such as Rack::Lock (used by Rails) break badly unless
   the response body is closed on hijack, so we will close it to follow
   the lead of other popular Rack servers.

   While it's unclear if there's anybody using rack.hijack besides
   yahns/proxy_pass we'll try to emulate the behavior of other servers
   as much as possible.

   ref: https://github.com/ngauthier/tubesock/issues/10

 We'll also support SIGWINCH if not daemonized

   This has no effect for the (default) single process case with
   no master/worker relationship as that does not support SIGWINCH.

  Some process managers such as foreman and daemontools rely on
  yahnsnot daemonizing, but we still want to be able to process
  SIGWINCH in that case.

  stdout and stderr may be redirected to a pipe (for cronolog or
  similar process), so those are less likely to be attached to a TTY
  than stdin.  This also allows users to process SIGWINCH when running
  inside a regular terminal if they redirect stdin to /dev/null.

  This follows unicorn commit a6077391bb62d0b13016084b0eea36b987afe8f0
  Thanks to Dan Moore for suggesting it on the unicorn list.

 A few more minor changes, more memory reduction changes coming...

 * proxy_pass: no point in closing StringIO
 * proxy_pass: allow filtering or overriding response headers
 * support SIGWINCH even if not daemonized
 * use Unicorn::HttpParser#response_start_sent accessor
 * reduce inline constant cache overheads
 * proxy_pass: skip tests if kcar is missing
 * ensure body is closed during hijack

Please note the disclaimer:

  yahns is extremely sensitive to fatal bugs in the apps it hosts.  There
  is no (and never will be) any built-in "watchdog"-type feature to kill
  stuck processes/threads.  Each yahns process may be handling thousands
  of clients; unexpectedly killing the process will abort _all_ of those
  connections.  Lives may be lost!

  yahns hackers are not responsible for your application/library bugs.
  Use an application server which is tolerant of buggy applications
  if you cannot be bothered to fix all your fatal bugs.

* git clone git://yhbt.net/yahns
* http://yahns.yhbt.net/README
* http://yahns.yhbt.net/NEWS.atom.xml
* we like plain-text email yahns-public@yhbt.net
* and archive all the mail we receive: http://yhbt.net/yahns-public/

-- 
EW

^ permalink raw reply	[relevance 4%]

* [PATCH] proxy_pass: skip tests if kcar is missing
@ 2015-06-09 20:22  7% Eric Wong
  0 siblings, 0 replies; 2+ results
From: Eric Wong @ 2015-06-09 20:22 UTC (permalink / raw)
  To: yahns-public

We don't require kcar to be installed since most users will never
use the proxy_pass feature, but show an informative error in case
they want to test this functionality.
---
 test/test_extras_proxy_pass.rb | 5 +++++
 test/test_proxy_pass.rb        | 5 +++++
 2 files changed, 10 insertions(+)

diff --git a/test/test_extras_proxy_pass.rb b/test/test_extras_proxy_pass.rb
index 495a920..851b6aa 100644
--- a/test/test_extras_proxy_pass.rb
+++ b/test/test_extras_proxy_pass.rb
@@ -1,6 +1,10 @@
 # Copyright (C) 2015 all contributors <yahns-public@yhbt.net>
 # License: GPLv3 or later (https://www.gnu.org/licenses/gpl-3.0.txt)
 require_relative 'server_helper'
+begin
+  require 'kcar'
+rescue LoadError
+end
 
 class TestExtrasProxyPass < Testcase
   ENV["N"].to_i > 1 and parallelize_me!
@@ -27,6 +31,7 @@ class TestExtrasProxyPass < Testcase
   def setup
     @srv2 = TCPServer.new(ENV["TEST_HOST"] || "127.0.0.1", 0)
     server_helper_setup
+    skip "kcar missing for extras/proxy_pass" unless defined?(Kcar)
   end
 
   def teardown
diff --git a/test/test_proxy_pass.rb b/test/test_proxy_pass.rb
index a27a45e..7f752e3 100644
--- a/test/test_proxy_pass.rb
+++ b/test/test_proxy_pass.rb
@@ -3,6 +3,10 @@
 require_relative 'server_helper'
 require 'json'
 require 'digest'
+begin
+  require 'kcar'
+rescue LoadError
+end
 
 class TestProxyPass < Testcase
   ENV["N"].to_i > 1 and parallelize_me!
@@ -163,6 +167,7 @@ class TestProxyPass < Testcase
   def setup
     @srv2 = TCPServer.new(ENV["TEST_HOST"] || "127.0.0.1", 0)
     server_helper_setup
+    skip "kcar missing yahns/proxy_pass" unless defined?(Kcar)
   end
 
   def teardown
-- 
EW


^ permalink raw reply related	[relevance 7%]

Results 1-2 of 2 | reverse | options above
-- pct% links below jump to the message on this page, permalinks otherwise --
2015-06-09 20:22  7% [PATCH] proxy_pass: skip tests if kcar is missing Eric Wong
2015-06-11 19:58  4% [ANN] yahns 1.8.0 -_- sleepy app server for Ruby Eric Wong

Code repositories for project(s) associated with this public inbox

	https://yhbt.net/yahns.git/

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).