unicorn Ruby/Rack server user+dev discussion/patches/pulls/bugs/help
 help / color / mirror / code / Atom feed
Search results ordered by [date|relevance]  view[summary|nested|Atom feed]
thread overview below | download mbox.gz: |
* [PATCH] Use IO#wait instead to fix test for Ruby 1.9
@ 2018-02-24  7:06  6% Fumiaki MATSUSHIMA
  2018-02-24  8:08  7% ` Eric Wong
  0 siblings, 1 reply; 4+ results
From: Fumiaki MATSUSHIMA @ 2018-02-24  7:06 UTC (permalink / raw)
  To: unicorn-public; +Cc: mtsmfm

IO#wait_readable is introduced since 2.0

I confirmed we can pass tests for all versions of Ruby with this patch.

https://github.com/mtsmfm/unicorn/pull/2
---
 test/unit/test_ccc.rb | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/test/unit/test_ccc.rb b/test/unit/test_ccc.rb
index 0db0c38..3be1439 100644
--- a/test/unit/test_ccc.rb
+++ b/test/unit/test_ccc.rb
@@ -44,7 +44,7 @@ def test_ccc_tcpi
     # make sure the server is running, at least
     client = TCPSocket.new(host, port)
     client.write("GET / HTTP/1.1\r\nHost: example.com\r\n\r\n")
-    assert client.wait_readable(10), 'never got response from server'
+    assert client.wait(10), 'never got response from server'
     res = client.read
     assert_match %r{\AHTTP/1\.1 200}, res, 'got part of first response'
     assert_match %r{\r\n\r\n\z}, res, 'got end of response, server is ready'
-- 
2.14.1


^ permalink raw reply related	[relevance 6%]

* Re: [PATCH] Use IO#wait instead to fix test for Ruby 1.9
  2018-02-24  7:06  6% [PATCH] Use IO#wait instead to fix test for Ruby 1.9 Fumiaki MATSUSHIMA
@ 2018-02-24  8:08  7% ` Eric Wong
  2018-02-25 11:34  7%   ` Fumiaki Matsushima
  0 siblings, 1 reply; 4+ results
From: Eric Wong @ 2018-02-24  8:08 UTC (permalink / raw)
  To: Fumiaki MATSUSHIMA; +Cc: unicorn-public, mtsmfm

Fumiaki MATSUSHIMA <mtsm.fm@gmail.com> wrote:
> IO#wait_readable is introduced since 2.0
> 
> I confirmed we can pass tests for all versions of Ruby with this patch.

Thanks, applied.  Not sure if it's worth making a new release
to fix a test case, so I might wait a bit and see if there's
other stuff.

Also curious, how long do folks intend to continue using 1.9.3?

I don't care for whatever ruby-core claims to support, I know
realistically some folks (including distros) continue using older
versions for a while and I'll do my best to support them.

^ permalink raw reply	[relevance 7%]

* Re: [PATCH] Use IO#wait instead to fix test for Ruby 1.9
  2018-02-24  8:08  7% ` Eric Wong
@ 2018-02-25 11:34  7%   ` Fumiaki Matsushima
  0 siblings, 0 replies; 4+ results
From: Fumiaki Matsushima @ 2018-02-25 11:34 UTC (permalink / raw)
  To: unicorn-public

Thanks!

> I don't care for whatever ruby-core claims to support

Honestly, I don't use not maintained versions.

On Sat, Feb 24, 2018 at 5:08 PM, Eric Wong <e@80x24.org> wrote:
> Fumiaki MATSUSHIMA <mtsm.fm@gmail.com> wrote:
>> IO#wait_readable is introduced since 2.0
>>
>> I confirmed we can pass tests for all versions of Ruby with this patch.
>
> Thanks, applied.  Not sure if it's worth making a new release
> to fix a test case, so I might wait a bit and see if there's
> other stuff.
>
> Also curious, how long do folks intend to continue using 1.9.3?
>
> I don't care for whatever ruby-core claims to support, I know
> realistically some folks (including distros) continue using older
> versions for a while and I'll do my best to support them.

^ permalink raw reply	[relevance 7%]

* [ANN] unicorn 5.4.1 - Rack HTTP server for fast clients and Unix
  @ 2018-07-23 17:19  3% ` Eric Wong
  0 siblings, 0 replies; 4+ results
From: Eric Wong @ 2018-07-23 17:19 UTC (permalink / raw)
  To: ruby-talk, unicorn-public; +Cc: Fumiaki MATSUSHIMA

unicorn is an HTTP server for Rack applications designed to only serve
fast clients on low-latency, high-bandwidth connections and take
advantage of features in Unix/Unix-like kernels.  Slow clients should
only be served by placing a reverse proxy capable of fully buffering
both the the request and response in between unicorn and slow clients.

* https://bogomips.org/unicorn/
* public list: unicorn-public@bogomips.org
* public mail archives: https://bogomips.org/unicorn-public/
* git clone https://bogomips.org/unicorn.git
* https://bogomips.org/unicorn/NEWS.atom.xml
* nntp://news.public-inbox.org/inbox.comp.lang.ruby.unicorn

Changes:

    unicorn 5.4.1
    
    This release quiets some warnings for Ruby 2.6 preview releases
    and enables tests to pass under Ruby 1.9.3.  Otherwise, nothing
    interesting for Ruby 2.0..2.5 users.  *YAWN*
    
    Eric Wong (1):
          quiet some mismatched indentation warnings
    
    Fumiaki MATSUSHIMA (1):
          Use IO#wait instead to fix test for Ruby 1.9

^ permalink raw reply	[relevance 3%]

Results 1-4 of 4 | reverse | options above
-- pct% links below jump to the message on this page, permalinks otherwise --
2017-12-23 23:42     [ANN] unicorn 5.4.0 - Rack HTTP server for fast clients and Unix Eric Wong
2018-07-23 17:19  3% ` [ANN] unicorn 5.4.1 " Eric Wong
2018-02-24  7:06  6% [PATCH] Use IO#wait instead to fix test for Ruby 1.9 Fumiaki MATSUSHIMA
2018-02-24  8:08  7% ` Eric Wong
2018-02-25 11:34  7%   ` Fumiaki Matsushima

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

	https://yhbt.net/unicorn.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).