kgio RubyGem 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: |
* [ANN] kgio 2.9.0 - cleanups, bug fixes, minor improvements
@ 2014-02-04  3:12  7% Eric Wong
  0 siblings, 0 replies; 2+ results
From: Eric Wong @ 2014-02-04  3:12 UTC (permalink / raw)
  To: kgio

Changes:

This adds a new kgio_syssend method for Ruby 1.9+ which behaves
like BasicSocket#send, but will not raise exceptions on EAGAIN.

Eric Wong (12):
      test_poll: remove race prone test_poll_EINTR_changed test
      tryopen: remove RARRAY_PTR usage in init
      read_write: remove the rest of RARRAY_PTR usage
      my_writev: stylistic fixes
      Rakefile: kill raa_update task
      avoid downsizing casts
      connect: constify RSTRING-related things
      set RSTRING_MODIFIED where appropriate for Rubinius
      split read_write.c into {read,write,writev}.c
      add kgio_syssend method to wrap send(2)
      write: correct check for various blocking regions
      tryopen: additional debug information for bad Errno values

Hleb Valoshka (1):
      Don't use deprecated api

* http://bogomips.org/kgio/
* kgio@librelist.org
* git://bogomips.org/kgio.git
* http://bogomips.org/kgio/NEWS.atom.xml

-- 
Eric Wong


^ permalink raw reply	[relevance 7%]

* Re: Test failure caused by commit 377028d99
  @ 2013-09-25 17:46  7%             ` Eric Wong
  0 siblings, 0 replies; 2+ results
From: Eric Wong @ 2013-09-25 17:46 UTC (permalink / raw)
  To: kgio

Hleb Valoshka <375gnu@gmail.com> wrote:
> On 9/21/13, Eric Wong <normalperson@yhbt.net> wrote:
> 
> > Does the following help?
> 
> No. I was using ruby 2.1.0dev (2013-09-22 trunk 43011) [x86_64-linux].
> 
> 20 runs, 2 signals still were delivered too late, 1 test failure:

Thanks for the report.  I'm not sure what can be done :< git will
remember for us in case we want to resurrect a fixed version of it.
I'll push this out:

Subject: [PATCH] test_poll: remove race prone test_poll_EINTR_changed test

We haven't figured out a way to reliably test this w/o races, so lets
just remove it for now and trust it works by reading the C code.

ref: <CAAB-KcnpvcG6=OZNsBmvv440OHfCWs6-eDD7L6oD=ziCRXPHLA@mail.gmail.com>
---
 test/test_poll.rb | 25 -------------------------
 1 file changed, 25 deletions(-)

diff --git a/test/test_poll.rb b/test/test_poll.rb
index d9a2b07..6463ef9 100644
--- a/test/test_poll.rb
+++ b/test/test_poll.rb
@@ -87,31 +87,6 @@ class TestPoll < Test::Unit::TestCase
       trap(:USR1, orig)
   end
 
-  def test_poll_EINTR_changed
-    ok = false
-    pollset = { @rd => Kgio::POLLIN }
-    orig = trap(:USR1) do
-      pollset[@wr] = Kgio::POLLOUT
-      ok = true
-    end
-    thr = Thread.new do
-      sleep 0.100
-      100.times do
-        Process.kill(:USR1, $$)
-        Thread.pass
-      end
-    end
-    t0 = Time.now
-    res = Kgio.poll(pollset, 1000)
-    diff = Time.now - t0
-    thr.join
-    assert_equal({@wr => Kgio::POLLOUT}, res)
-    assert diff < 1.0, "diff=#{diff}"
-    assert ok
-    ensure
-      trap(:USR1, orig)
-  end
-
   def test_poll_signal_torture
     usr1 = 0
     empty = 0
-- 
1.8.4


^ 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 --
2013-09-04 20:14     Test failure caused by commit 377028d99 Hleb Valoshka
2013-09-04 20:51     ` Eric Wong
2013-09-05 19:48       ` Hleb Valoshka
2013-09-05 23:13         ` Eric Wong
2013-09-15 19:07           ` Hleb Valoshka
2013-09-21  9:30             ` Eric Wong
2013-09-24 15:02               ` Hleb Valoshka
2013-09-25 17:46  7%             ` Eric Wong
2014-02-04  3:12  7% [ANN] kgio 2.9.0 - cleanups, bug fixes, minor improvements Eric Wong

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

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