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: |
* what's cooking in kgio.git
@ 2012-12-27  2:13  5% Eric Wong
  0 siblings, 0 replies; 3+ results
From: Eric Wong @ 2012-12-27  2:13 UTC (permalink / raw)
  To: kgio

It's been a while since the last release :x

I've pushed out some changes which enable TCP Fast Open on Linux 3.7

I probably should've released 2.8.0 over the summer, but I
forgot about it and nobody reminded me (just ask here! :)

Anyways I'll see about releasing 2.8.0 sometime this week.
Comments greatly appreciated, especially on the API for
the TCP Fast Open client (patch coming in reply).

Eric Wong (10):
      tryopen: avoid ambiguous name for subst function
      test_poll: skip signal torture on Debian GNU/kfreebsd
      test/lib_read_write: wait for readability before tryread
      test workaround for platforms with unreliable signals
      tryopen: include errno.h header just in case
      connect: split out my_socket() function
      connect: factor out tcp_getaddr() function
      Kgio::Socket.new retains compatibility with Socket.new
      implement TCP Fast Open support (client + server)
      read_write: remove unused variable

Sokolov Yura 'funny-falcon (3):
      Fix UnixClientReadServerWrite test class name
      use rb_str_subseq for tail string on write
      add `#kgio_writev` and `#kgio_trywritev`

 ext/kgio/connect.c                         | 142 ++++++++++---
 ext/kgio/extconf.rb                        |   4 +
 ext/kgio/kgio.h                            |  23 +++
 ext/kgio/kgio_ext.c                        |  35 ++++
 ext/kgio/read_write.c                      | 310 ++++++++++++++++++++++++++++-
 ext/kgio/tryopen.c                         |   5 +-
 test/lib_read_write.rb                     | 129 ++++++++++++
 test/lib_server_accept.rb                  |   8 +-
 test/test_poll.rb                          |   8 +-
 test/test_socket.rb                        |  14 ++
 test/test_tfo.rb                           |  70 +++++++
 test/test_unix_client_read_server_write.rb |   2 +-
 12 files changed, 715 insertions(+), 35 deletions(-)


^ permalink raw reply	[relevance 5%]

* [PATCH 0/3] test fixes for GNU/kFreeBSD (and possibly other *BSDs)
@ 2012-07-11 22:34  5% Eric Wong
  2012-07-11 22:34  7% ` [PATCH 3/3] test workaround for platforms with unreliable signals Eric Wong
  0 siblings, 1 reply; 3+ results
From: Eric Wong @ 2012-07-11 22:34 UTC (permalink / raw)
  To: kgio

Pushed to "master" of git://bogomips.org/kgio
(commit f020550fc802f299fdcdec695ac80d53ef3d24d9)

     1	test_poll: skip signal torture on Debian GNU/kfreebsd
     2	test/lib_read_write: wait for readability before tryread
     3	test workaround for platforms with unreliable signals

 test/lib_read_write.rb    | 1 +
 test/lib_server_accept.rb | 8 ++++----
 test/test_poll.rb         | 8 +++-----
 3 files changed, 8 insertions(+), 9 deletions(-)


^ permalink raw reply	[relevance 5%]

* [PATCH 3/3] test workaround for platforms with unreliable signals
  2012-07-11 22:34  5% [PATCH 0/3] test fixes for GNU/kFreeBSD (and possibly other *BSDs) Eric Wong
@ 2012-07-11 22:34  7% ` Eric Wong
  0 siblings, 0 replies; 3+ results
From: Eric Wong @ 2012-07-11 22:34 UTC (permalink / raw)
  To: kgio

From: Eric Wong <ew@debkfreebsd.(none)>

Ruby may not respond well to signals on all platforms, especially not
after fork()-ing in the face of a running pthread (timer thread on
1.9.2).  SIGKILL bypasses Ruby (and all userspace) signal handling on
Debian GNU/kFreeBSD.
---
 test/lib_server_accept.rb |    8 ++++----
 1 files changed, 4 insertions(+), 4 deletions(-)

diff --git a/test/lib_server_accept.rb b/test/lib_server_accept.rb
index ccf89d8..ff0f733 100644
--- a/test/lib_server_accept.rb
+++ b/test/lib_server_accept.rb
@@ -47,7 +47,7 @@ module LibServerAccept
     elapsed = Time.now - t0
     assert_kind_of Kgio::Socket, b
     assert_equal @host, b.kgio_addr
-    Process.kill(:TERM, pid)
+    Process.kill(:KILL, pid)
     Process.waitpid(pid)
     assert elapsed >= 1, "elapsed: #{elapsed}"
   end
@@ -60,7 +60,7 @@ module LibServerAccept
     elapsed = Time.now - t0
     assert_kind_of Kgio::Socket, b
     assert_equal @host, b.kgio_addr
-    Process.kill(:TERM, pid)
+    Process.kill(:KILL, pid)
     Process.waitpid(pid)
     assert elapsed >= 1, "elapsed: #{elapsed}"
 
@@ -70,7 +70,7 @@ module LibServerAccept
     elapsed = Time.now - t0
     assert_kind_of Kgio::Socket, b
     assert_equal @host, b.kgio_addr
-    Process.kill(:TERM, pid)
+    Process.kill(:KILL, pid)
     Process.waitpid(pid)
     assert elapsed >= 6, "elapsed: #{elapsed}"
 
@@ -80,7 +80,7 @@ module LibServerAccept
     elapsed = Time.now - t0
     assert_kind_of Kgio::Socket, b
     assert_equal @host, b.kgio_addr
-    Process.kill(:TERM, pid)
+    Process.kill(:KILL, pid)
     Process.waitpid(pid)
     assert elapsed >= 1, "elapsed: #{elapsed}"
   end
-- 
1.7.2.5



^ permalink raw reply related	[relevance 7%]

Results 1-3 of 3 | reverse | options above
-- pct% links below jump to the message on this page, permalinks otherwise --
2012-07-11 22:34  5% [PATCH 0/3] test fixes for GNU/kFreeBSD (and possibly other *BSDs) Eric Wong
2012-07-11 22:34  7% ` [PATCH 3/3] test workaround for platforms with unreliable signals Eric Wong
2012-12-27  2:13  5% what's cooking in kgio.git 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).