sleepy_penguin 3.5.1 → 3.5.2
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.
- checksums.yaml +4 -4
- data/.olddoc.yml +5 -5
- data/GIT-VERSION-GEN +1 -1
- data/GNUmakefile +1 -1
- data/README +5 -5
- data/ext/sleepy_penguin/epoll.c +2 -1
- data/ext/sleepy_penguin/splice.c +0 -1
- data/pkg.mk +1 -1
- data/sleepy_penguin.gemspec +3 -3
- data/test/test_epoll.rb +4 -1
- metadata +5 -6
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 4872ec6b37073cc05c185ef860ab5b68c00b9cc3ec22f9fbb3db25e7175237aa
|
4
|
+
data.tar.gz: 6b6c606de834fade8650a831a791de2a85119cee038d571efdc1b5da77f0248f
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 9e4dcbada097851753a76b75609dd9c4e3a996092d763b4d5b419ff9d240fd2b3cf620035c07afd220b5f2abdc87072b2c485096a94a99dd1934aae388e31b43
|
7
|
+
data.tar.gz: 742cb40f0f7ec2d08457a9a729b8d08e006e36c239e38cfdd3574982a185dace9d4853f055cbaa1353dd837194e924499c785a4d24d8ccbc1e31d4d756c47c09
|
data/.olddoc.yml
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
---
|
2
|
-
cgit_url: https://
|
3
|
-
git_url: https://
|
4
|
-
rdoc_url: https://
|
5
|
-
ml_url: https://
|
6
|
-
public_email: sleepy-penguin@
|
2
|
+
cgit_url: https://yhbt.net/sleepy_penguin.git
|
3
|
+
git_url: https://yhbt.net/sleepy_penguin.git
|
4
|
+
rdoc_url: https://yhbt.net/sleepy_penguin/
|
5
|
+
ml_url: https://yhbt.net/sleepy-penguin/
|
6
|
+
public_email: sleepy-penguin@yhbt.net
|
data/GIT-VERSION-GEN
CHANGED
data/GNUmakefile
CHANGED
data/README
CHANGED
@@ -31,7 +31,7 @@ If you use RubyGems:
|
|
31
31
|
|
32
32
|
Otherwise grab the latest tarball from:
|
33
33
|
|
34
|
-
https://
|
34
|
+
https://yhbt.net/sleepy_penguin/files/
|
35
35
|
|
36
36
|
Unpack it, and run "ruby setup.rb"
|
37
37
|
|
@@ -39,13 +39,13 @@ Unpack it, and run "ruby setup.rb"
|
|
39
39
|
|
40
40
|
You can get the latest source via git from the following locations:
|
41
41
|
|
42
|
-
https://
|
42
|
+
https://yhbt.net/sleepy_penguin.git
|
43
43
|
https://repo.or.cz/sleepy_penguin.git (mirror)
|
44
44
|
|
45
45
|
You may browse the code from the web and download the latest snapshot
|
46
46
|
tarballs here:
|
47
47
|
|
48
|
-
* https://
|
48
|
+
* https://yhbt.net/sleepy_penguin.git
|
49
49
|
* https://repo.or.cz/w/sleepy_penguin.git (gitweb)
|
50
50
|
|
51
51
|
Inline patches (from "git format-patch") to the mailing list are
|
@@ -60,9 +60,9 @@ don't email the git mailing list or maintainer with sleepy_penguin patches.
|
|
60
60
|
== Contact
|
61
61
|
|
62
62
|
All feedback (bug reports, user/development discussion, patches, pull
|
63
|
-
requests) go to the mailing list: mailto:sleepy-penguin@
|
63
|
+
requests) go to the mailing list: mailto:sleepy-penguin@yhbt.net
|
64
64
|
|
65
|
-
* Mailing list archives: https://
|
65
|
+
* Mailing list archives: https://yhbt.net/sleepy-penguin/
|
66
66
|
|
67
67
|
* Also available over NNTP:
|
68
68
|
nntp://news.public-inbox.org/inbox.comp.lang.ruby.sleepy-penguin
|
data/ext/sleepy_penguin/epoll.c
CHANGED
@@ -170,9 +170,10 @@ static VALUE nogvl_wait(void *args)
|
|
170
170
|
return (VALUE)n;
|
171
171
|
}
|
172
172
|
|
173
|
-
static VALUE real_epwait(
|
173
|
+
static VALUE real_epwait(VALUE p)
|
174
174
|
{
|
175
175
|
long n;
|
176
|
+
struct ep_per_thread *ept = (struct ep_per_thread *)p;
|
176
177
|
uint64_t expire_at = ept->timeout > 0 ? now_ms() + ept->timeout : 0;
|
177
178
|
|
178
179
|
ept->fd = rb_sp_fileno(ept->io);
|
data/ext/sleepy_penguin/splice.c
CHANGED
@@ -130,7 +130,6 @@ void sleepy_penguin_init_splice(void)
|
|
130
130
|
* out of them.
|
131
131
|
*
|
132
132
|
* It is highly recommended this flag be set
|
133
|
-
* (or SleepyPenguin.trysplice used)
|
134
133
|
* whenever splicing from a socket into a pipe unless there is
|
135
134
|
* another (native) thread or process doing a blocking read on that
|
136
135
|
* pipe. Otherwise it is possible to block a single-threaded process
|
data/pkg.mk
CHANGED
@@ -60,7 +60,7 @@ doc:: .document .olddoc.yml $(pkg_extra) $(PLACEHOLDERS)
|
|
60
60
|
-find lib -type f -name '*.rbc' -exec rm -f '{}' ';'
|
61
61
|
-find ext -type f -name '*.rbc' -exec rm -f '{}' ';'
|
62
62
|
$(RM) -r doc
|
63
|
-
$(RDOC) -f
|
63
|
+
$(RDOC) -f dark216
|
64
64
|
$(OLDDOC) merge
|
65
65
|
install -m644 COPYING doc/COPYING
|
66
66
|
install -m644 NEWS doc/NEWS
|
data/sleepy_penguin.gemspec
CHANGED
@@ -3,11 +3,11 @@ manifest = File.exist?('.manifest') ?
|
|
3
3
|
|
4
4
|
Gem::Specification.new do |s|
|
5
5
|
s.name = %q{sleepy_penguin}
|
6
|
-
s.version = (ENV['VERSION'] || '3.5.
|
7
|
-
s.homepage = 'https://
|
6
|
+
s.version = (ENV['VERSION'] || '3.5.2').dup
|
7
|
+
s.homepage = 'https://yhbt.net/sleepy_penguin/'
|
8
8
|
s.authors = ['sleepy_penguin hackers']
|
9
9
|
s.description = File.read('README').split("\n\n")[1]
|
10
|
-
s.email = %q{sleepy-penguin@
|
10
|
+
s.email = %q{sleepy-penguin@yhbt.net}
|
11
11
|
s.files = manifest
|
12
12
|
s.summary = 'Linux I/O events for Ruby'
|
13
13
|
s.test_files = Dir['test/test_*.rb']
|
data/test/test_epoll.rb
CHANGED
@@ -521,8 +521,10 @@ class TestEpoll < Test::Unit::TestCase
|
|
521
521
|
def test_epoll_as_queue
|
522
522
|
fl = Epoll::OUT | Epoll::ET
|
523
523
|
first = nil
|
524
|
+
to_close = []
|
524
525
|
500.times do
|
525
|
-
r, w = IO.pipe
|
526
|
+
r, w = ary = IO.pipe
|
527
|
+
to_close.concat(ary)
|
526
528
|
@ep.add(w, fl)
|
527
529
|
first ||= begin
|
528
530
|
@ep.add(r, Epoll::IN | Epoll::ET)
|
@@ -533,6 +535,7 @@ class TestEpoll < Test::Unit::TestCase
|
|
533
535
|
@ep.wait(1) { |flags, io| first[1].write('.') if i == 0 }
|
534
536
|
end
|
535
537
|
@ep.wait(1) { |flags, io| assert_equal(first[0], io) }
|
538
|
+
to_close.each(&:close)
|
536
539
|
end
|
537
540
|
|
538
541
|
def test_epoll_nest
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: sleepy_penguin
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 3.5.
|
4
|
+
version: 3.5.2
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- sleepy_penguin hackers
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2020-02-01 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: test-unit
|
@@ -43,7 +43,7 @@ description: |-
|
|
43
43
|
on events from traditionally non-I/O sources. Bindings to the eventfd,
|
44
44
|
timerfd, inotify, and epoll interfaces are provided. Experimental support
|
45
45
|
for kqueue on FreeBSD (and likely OpenBSD/NetBSD) is also provided.
|
46
|
-
email: sleepy-penguin@
|
46
|
+
email: sleepy-penguin@yhbt.net
|
47
47
|
executables: []
|
48
48
|
extensions:
|
49
49
|
- ext/sleepy_penguin/extconf.rb
|
@@ -120,7 +120,7 @@ files:
|
|
120
120
|
- test/test_splice.rb
|
121
121
|
- test/test_splice_eintr.rb
|
122
122
|
- test/test_timerfd.rb
|
123
|
-
homepage: https://
|
123
|
+
homepage: https://yhbt.net/sleepy_penguin/
|
124
124
|
licenses:
|
125
125
|
- LGPL-2.1+
|
126
126
|
metadata: {}
|
@@ -139,8 +139,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
139
139
|
- !ruby/object:Gem::Version
|
140
140
|
version: '0'
|
141
141
|
requirements: []
|
142
|
-
|
143
|
-
rubygems_version: 2.7.7
|
142
|
+
rubygems_version: 3.0.2
|
144
143
|
signing_key:
|
145
144
|
specification_version: 4
|
146
145
|
summary: Linux I/O events for Ruby
|