kgio 2.1.1 → 2.2.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- data/.gitignore +1 -0
- data/.manifest +11 -2
- data/.wrongdoc.yml +4 -0
- data/ChangeLog +810 -531
- data/GIT-VERSION-FILE +1 -1
- data/GIT-VERSION-GEN +1 -1
- data/GNUmakefile +4 -147
- data/LATEST +25 -0
- data/NEWS +49 -9
- data/README +2 -2
- data/Rakefile +2 -2
- data/ext/kgio/accept.c +64 -20
- data/ext/kgio/{missing/ancient_ruby.h → ancient_ruby.h} +0 -0
- data/ext/kgio/autopush.c +203 -0
- data/ext/kgio/connect.c +29 -14
- data/ext/kgio/extconf.rb +13 -2
- data/ext/kgio/kgio.h +7 -1
- data/ext/kgio/kgio_ext.c +1 -0
- data/ext/kgio/{missing/accept4.h → missing_accept4.h} +0 -0
- data/ext/kgio/read_write.c +58 -3
- data/kgio.gemspec +2 -1
- data/pkg.mk +168 -0
- data/test/lib_read_write.rb +10 -2
- data/test/test_autopush.rb +165 -0
- data/test/test_kgio_addr.rb +19 -0
- data/test/test_no_dns_on_tcp_connect.rb +13 -0
- data/test/test_singleton_read_write.rb +21 -0
- data/test/test_tcp6_client_read_server_write.rb +23 -0
- metadata +41 -12
@@ -0,0 +1,23 @@
|
|
1
|
+
require './test/lib_read_write'
|
2
|
+
|
3
|
+
begin
|
4
|
+
tmp = TCPServer.new(ENV["TEST_HOST6"] || '::1', 0)
|
5
|
+
ipv6_enabled = true
|
6
|
+
rescue => e
|
7
|
+
warn "skipping IPv6 tests, host does not seem to be IPv6 enabled:"
|
8
|
+
warn " #{e.class}: #{e}"
|
9
|
+
ipv6_enabled = false
|
10
|
+
end
|
11
|
+
|
12
|
+
class TestTcp6ClientReadServerWrite < Test::Unit::TestCase
|
13
|
+
def setup
|
14
|
+
@host = ENV["TEST_HOST6"] || '::1'
|
15
|
+
@srv = Kgio::TCPServer.new(@host, 0)
|
16
|
+
@port = @srv.addr[1]
|
17
|
+
@wr = Kgio::TCPSocket.new(@host, @port)
|
18
|
+
@rd = @srv.kgio_accept
|
19
|
+
assert_equal Socket.unpack_sockaddr_in(@rd.getpeername)[-1], @rd.kgio_addr
|
20
|
+
end
|
21
|
+
|
22
|
+
include LibReadWriteTest
|
23
|
+
end if ipv6_enabled
|
metadata
CHANGED
@@ -1,13 +1,13 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: kgio
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
hash:
|
4
|
+
hash: 7
|
5
5
|
prerelease: false
|
6
6
|
segments:
|
7
7
|
- 2
|
8
|
-
-
|
9
|
-
-
|
10
|
-
version: 2.
|
8
|
+
- 2
|
9
|
+
- 0
|
10
|
+
version: 2.2.0
|
11
11
|
platform: ruby
|
12
12
|
authors:
|
13
13
|
- kgio hackers
|
@@ -15,7 +15,7 @@ autorequire:
|
|
15
15
|
bindir: bin
|
16
16
|
cert_chain: []
|
17
17
|
|
18
|
-
date:
|
18
|
+
date: 2011-02-04 00:00:00 +00:00
|
19
19
|
default_executable:
|
20
20
|
dependencies:
|
21
21
|
- !ruby/object:Gem::Dependency
|
@@ -26,14 +26,28 @@ dependencies:
|
|
26
26
|
requirements:
|
27
27
|
- - ~>
|
28
28
|
- !ruby/object:Gem::Version
|
29
|
-
hash:
|
29
|
+
hash: 7
|
30
30
|
segments:
|
31
31
|
- 1
|
32
|
-
-
|
33
|
-
|
34
|
-
version: 1.0.1
|
32
|
+
- 4
|
33
|
+
version: "1.4"
|
35
34
|
type: :development
|
36
35
|
version_requirements: *id001
|
36
|
+
- !ruby/object:Gem::Dependency
|
37
|
+
name: strace_me
|
38
|
+
prerelease: false
|
39
|
+
requirement: &id002 !ruby/object:Gem::Requirement
|
40
|
+
none: false
|
41
|
+
requirements:
|
42
|
+
- - ~>
|
43
|
+
- !ruby/object:Gem::Version
|
44
|
+
hash: 15
|
45
|
+
segments:
|
46
|
+
- 1
|
47
|
+
- 0
|
48
|
+
version: "1.0"
|
49
|
+
type: :development
|
50
|
+
version_requirements: *id002
|
37
51
|
description: |-
|
38
52
|
kgio provides non-blocking I/O methods for Ruby without raising
|
39
53
|
exceptions on EAGAIN and EINPROGRESS. It is intended for use with the
|
@@ -49,6 +63,7 @@ extra_rdoc_files:
|
|
49
63
|
- README
|
50
64
|
- TODO
|
51
65
|
- NEWS
|
66
|
+
- LATEST
|
52
67
|
- ChangeLog
|
53
68
|
- ISSUES
|
54
69
|
- HACKING
|
@@ -62,6 +77,7 @@ files:
|
|
62
77
|
- .document
|
63
78
|
- .gitignore
|
64
79
|
- .manifest
|
80
|
+
- .wrongdoc.yml
|
65
81
|
- COPYING
|
66
82
|
- ChangeLog
|
67
83
|
- GIT-VERSION-FILE
|
@@ -69,18 +85,20 @@ files:
|
|
69
85
|
- GNUmakefile
|
70
86
|
- HACKING
|
71
87
|
- ISSUES
|
88
|
+
- LATEST
|
72
89
|
- LICENSE
|
73
90
|
- NEWS
|
74
91
|
- README
|
75
92
|
- Rakefile
|
76
93
|
- TODO
|
77
94
|
- ext/kgio/accept.c
|
95
|
+
- ext/kgio/ancient_ruby.h
|
96
|
+
- ext/kgio/autopush.c
|
78
97
|
- ext/kgio/connect.c
|
79
98
|
- ext/kgio/extconf.rb
|
80
99
|
- ext/kgio/kgio.h
|
81
100
|
- ext/kgio/kgio_ext.c
|
82
|
-
- ext/kgio/
|
83
|
-
- ext/kgio/missing/ancient_ruby.h
|
101
|
+
- ext/kgio/missing_accept4.h
|
84
102
|
- ext/kgio/my_fileno.h
|
85
103
|
- ext/kgio/nonblock.h
|
86
104
|
- ext/kgio/read_write.c
|
@@ -88,15 +106,21 @@ files:
|
|
88
106
|
- ext/kgio/wait.c
|
89
107
|
- kgio.gemspec
|
90
108
|
- lib/kgio.rb
|
109
|
+
- pkg.mk
|
91
110
|
- setup.rb
|
92
111
|
- test/lib_read_write.rb
|
93
112
|
- test/lib_server_accept.rb
|
94
113
|
- test/test_accept_class.rb
|
114
|
+
- test/test_autopush.rb
|
95
115
|
- test/test_connect_fd_leak.rb
|
96
116
|
- test/test_default_wait.rb
|
117
|
+
- test/test_kgio_addr.rb
|
118
|
+
- test/test_no_dns_on_tcp_connect.rb
|
97
119
|
- test/test_pipe_popen.rb
|
98
120
|
- test/test_pipe_read_write.rb
|
121
|
+
- test/test_singleton_read_write.rb
|
99
122
|
- test/test_socketpair_read_write.rb
|
123
|
+
- test/test_tcp6_client_read_server_write.rb
|
100
124
|
- test/test_tcp_client_read_server_write.rb
|
101
125
|
- test/test_tcp_connect.rb
|
102
126
|
- test/test_tcp_server.rb
|
@@ -114,7 +138,7 @@ rdoc_options:
|
|
114
138
|
- -t
|
115
139
|
- kgio - kinder, gentler I/O for Ruby
|
116
140
|
- -W
|
117
|
-
- http://
|
141
|
+
- http://bogomips.org/kgio.git/tree/%s
|
118
142
|
require_paths:
|
119
143
|
- lib
|
120
144
|
- ext
|
@@ -145,6 +169,7 @@ specification_version: 3
|
|
145
169
|
summary: kinder, gentler I/O for Ruby
|
146
170
|
test_files:
|
147
171
|
- test/test_default_wait.rb
|
172
|
+
- test/test_no_dns_on_tcp_connect.rb
|
148
173
|
- test/test_unix_connect.rb
|
149
174
|
- test/test_pipe_read_write.rb
|
150
175
|
- test/test_unix_server.rb
|
@@ -152,7 +177,11 @@ test_files:
|
|
152
177
|
- test/test_tcp_server.rb
|
153
178
|
- test/test_unix_server_read_client_write.rb
|
154
179
|
- test/test_tcp_connect.rb
|
180
|
+
- test/test_autopush.rb
|
155
181
|
- test/test_connect_fd_leak.rb
|
182
|
+
- test/test_singleton_read_write.rb
|
183
|
+
- test/test_kgio_addr.rb
|
184
|
+
- test/test_tcp6_client_read_server_write.rb
|
156
185
|
- test/test_tcp_server_read_client_write.rb
|
157
186
|
- test/test_unix_client_read_server_write.rb
|
158
187
|
- test/test_tcp_client_read_server_write.rb
|