polyphony 0.23 → 0.24
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGELOG.md +7 -0
- data/Gemfile.lock +4 -10
- data/README.md +0 -4
- data/TODO.md +5 -56
- data/docs/README.md +4 -7
- data/examples/core/{channel_echo.rb → xx-channels.rb} +0 -0
- data/examples/core/{defer.rb → xx-deferring-an-operation.rb} +0 -0
- data/examples/core/{genserver.rb → xx-erlang-style-genserver.rb} +2 -2
- data/examples/core/{fork.rb → xx-forking.rb} +2 -0
- data/examples/core/xx-move_on.rb +23 -0
- data/examples/core/{pulse.rb → xx-recurrent-timer.rb} +3 -2
- data/examples/core/{resource_cancel.rb → xx-resource_cancel.rb} +1 -2
- data/examples/core/{resource_delegate.rb → xx-resource_delegate.rb} +0 -0
- data/examples/core/{wait_for_signal.rb → xx-signals.rb} +0 -0
- data/examples/core/{sleep.rb → xx-sleeping.rb} +0 -0
- data/examples/core/{spin_error_backtrace.rb → xx-spin_error_backtrace.rb} +5 -2
- data/examples/core/{supervisor.rb → xx-supervisors.rb} +0 -0
- data/examples/core/{thread_cancel.rb → xx-thread_cancel.rb} +0 -0
- data/examples/core/{thread_pool.rb → xx-thread_pool.rb} +0 -0
- data/examples/core/{throttle.rb → xx-throttling.rb} +0 -0
- data/examples/core/{timeout.rb → xx-timeout.rb} +0 -0
- data/examples/core/{lock.rb → xx-using-a-mutex.rb} +0 -0
- data/examples/io/{backticks.rb → xx-backticks.rb} +0 -0
- data/examples/io/{echo_client.rb → xx-echo_client.rb} +0 -1
- data/examples/io/{echo_client_from_stdin.rb → xx-echo_client_from_stdin.rb} +0 -1
- data/examples/io/{echo_pipe.rb → xx-echo_pipe.rb} +0 -0
- data/examples/io/{echo_server.rb → xx-echo_server.rb} +0 -0
- data/examples/io/{echo_server_with_timeout.rb → xx-echo_server_with_timeout.rb} +0 -0
- data/examples/io/{echo_stdin.rb → xx-echo_stdin.rb} +0 -0
- data/examples/io/xx-httparty.rb +13 -0
- data/examples/io/{irb.rb → xx-irb.rb} +0 -0
- data/examples/io/{net-http.rb → xx-net-http.rb} +0 -0
- data/examples/io/{open.rb → xx-open.rb} +0 -1
- data/examples/io/{system.rb → xx-system.rb} +0 -0
- data/examples/io/{tcpserver.rb → xx-tcpserver.rb} +0 -0
- data/examples/io/{tcpsocket.rb → xx-tcpsocket.rb} +0 -1
- data/examples/{fs/read.rb → performance/fs_read.rb} +0 -0
- data/examples/{core → performance}/mem-usage.rb +1 -0
- data/examples/performance/multi_snooze.rb +2 -0
- data/examples/performance/snooze.rb +2 -0
- data/examples/performance/thread-vs-fiber/polyphony_server.rb +5 -3
- data/examples/performance/thread-vs-fiber/threaded_server.rb +1 -1
- data/examples/{io/httparty_multi.rb → performance/thread-vs-fiber/xx-httparty_multi.rb} +16 -13
- data/examples/{io/httparty_threaded.rb → performance/thread-vs-fiber/xx-httparty_threaded.rb} +2 -2
- data/examples/performance/thread.rb +27 -0
- data/examples/{core → performance}/thread_pool_perf.rb +0 -0
- data/ext/gyro/extconf.rb +1 -0
- data/lib/polyphony/extensions/core.rb +0 -5
- data/lib/polyphony/version.rb +1 -1
- data/polyphony.gemspec +3 -9
- metadata +59 -167
- data/bin/poly +0 -11
- data/examples/core/cancel.rb +0 -13
- data/examples/core/enumerator.rb +0 -15
- data/examples/core/error_bubbling.rb +0 -35
- data/examples/core/fiber_error.rb +0 -9
- data/examples/core/fiber_error_with_backtrace.rb +0 -73
- data/examples/core/move_on.rb +0 -11
- data/examples/core/move_on_twice.rb +0 -16
- data/examples/core/move_on_with_ensure.rb +0 -13
- data/examples/core/move_on_with_value.rb +0 -14
- data/examples/core/multiple_spin.rb +0 -18
- data/examples/core/nested_cancel.rb +0 -40
- data/examples/core/nested_multiple_spin.rb +0 -20
- data/examples/core/nested_spin.rb +0 -19
- data/examples/core/pingpong.rb +0 -21
- data/examples/core/resource.rb +0 -30
- data/examples/core/sleep_spin.rb +0 -21
- data/examples/core/snooze.rb +0 -32
- data/examples/core/spin_error.rb +0 -17
- data/examples/core/spin_uncaught_error.rb +0 -16
- data/examples/core/supervisor_with_cancel_scope.rb +0 -23
- data/examples/core/supervisor_with_error.rb +0 -24
- data/examples/core/supervisor_with_manual_move_on.rb +0 -23
- data/examples/core/suspend.rb +0 -13
- data/examples/core/thread.rb +0 -27
- data/examples/http/config.ru +0 -7
- data/examples/http/cuba.ru +0 -22
- data/examples/http/happy_eyeballs.rb +0 -37
- data/examples/http/http2_raw.rb +0 -135
- data/examples/http/http_client.rb +0 -28
- data/examples/http/http_get.rb +0 -33
- data/examples/http/http_parse_experiment.rb +0 -123
- data/examples/http/http_proxy.rb +0 -83
- data/examples/http/http_server.js +0 -24
- data/examples/http/http_server.rb +0 -28
- data/examples/http/http_server_forked.rb +0 -29
- data/examples/http/http_server_graceful.rb +0 -27
- data/examples/http/http_server_simple.rb +0 -11
- data/examples/http/http_server_throttled.rb +0 -15
- data/examples/http/http_ws_server.rb +0 -37
- data/examples/http/https_raw_client.rb +0 -12
- data/examples/http/https_server.rb +0 -22
- data/examples/http/https_wss_server.rb +0 -39
- data/examples/http/rack_server.rb +0 -12
- data/examples/http/rack_server_https.rb +0 -19
- data/examples/http/rack_server_https_forked.rb +0 -27
- data/examples/http/websocket_secure_server.rb +0 -27
- data/examples/http/websocket_server.rb +0 -24
- data/examples/http/ws_page.html +0 -34
- data/examples/http/wss_page.html +0 -34
- data/examples/io/cat.rb +0 -12
- data/examples/io/httparty.rb +0 -10
- data/examples/io/io_read.rb +0 -9
- data/lib/ev_ext.bundle +0 -0
- data/lib/polyphony/http.rb +0 -16
- data/lib/polyphony/http/client/agent.rb +0 -131
- data/lib/polyphony/http/client/http1.rb +0 -129
- data/lib/polyphony/http/client/http2.rb +0 -180
- data/lib/polyphony/http/client/response.rb +0 -32
- data/lib/polyphony/http/client/site_connection_manager.rb +0 -109
- data/lib/polyphony/http/server.rb +0 -49
- data/lib/polyphony/http/server/http1.rb +0 -268
- data/lib/polyphony/http/server/http2.rb +0 -78
- data/lib/polyphony/http/server/http2_stream.rb +0 -136
- data/lib/polyphony/http/server/rack.rb +0 -64
- data/lib/polyphony/http/server/request.rb +0 -118
- data/lib/polyphony/websocket.rb +0 -59
- data/test/test_http_server.rb +0 -313
@@ -5,7 +5,7 @@ require 'socket'
|
|
5
5
|
def handle_client(client)
|
6
6
|
Thread.new do
|
7
7
|
parser = Http::Parser.new
|
8
|
-
parser.on_message_complete= proc do |env|
|
8
|
+
parser.on_message_complete = proc do |env|
|
9
9
|
status_code = 200
|
10
10
|
data = "Hello world!\n"
|
11
11
|
headers = "Content-Length: #{data.bytesize}\r\n"
|
@@ -4,28 +4,31 @@ require 'bundler/setup'
|
|
4
4
|
require 'polyphony'
|
5
5
|
require 'httparty'
|
6
6
|
|
7
|
-
|
8
|
-
|
7
|
+
URL = 'http://worldtimeapi.org/api/timezone/Europe/Paris'
|
8
|
+
|
9
|
+
def get_time(results)
|
10
|
+
loop do
|
11
|
+
STDOUT << '!'
|
12
|
+
if (res = HTTParty.get(URL))
|
13
|
+
results << res
|
14
|
+
STDOUT << '.'
|
15
|
+
end
|
16
|
+
rescue StandardError => e
|
17
|
+
p e
|
18
|
+
end
|
19
|
+
end
|
9
20
|
|
10
21
|
t0 = Time.now
|
22
|
+
results = []
|
11
23
|
move_on_after(3) do
|
12
24
|
supervise do |s|
|
13
25
|
10.times do
|
14
|
-
s.spin
|
15
|
-
loop do
|
16
|
-
STDOUT << '!'
|
17
|
-
if (result = HTTParty.get(url))
|
18
|
-
results << result
|
19
|
-
STDOUT << '.'
|
20
|
-
end
|
21
|
-
rescue StandardError => e
|
22
|
-
p e
|
23
|
-
end
|
24
|
-
end
|
26
|
+
s.spin { get_time(results) }
|
25
27
|
end
|
26
28
|
end
|
27
29
|
puts 'done'
|
28
30
|
end
|
31
|
+
|
29
32
|
puts format(
|
30
33
|
'got %<count>d (%<rate>0.1f reqs/s)',
|
31
34
|
count: results.size,
|
data/examples/{io/httparty_threaded.rb → performance/thread-vs-fiber/xx-httparty_threaded.rb}
RENAMED
@@ -2,7 +2,7 @@
|
|
2
2
|
|
3
3
|
require 'httparty'
|
4
4
|
|
5
|
-
|
5
|
+
URL = 'http://worldtimeapi.org/api/timezone/Europe/Paris'
|
6
6
|
results = Queue.new
|
7
7
|
|
8
8
|
t0 = Time.now
|
@@ -11,7 +11,7 @@ threads = []
|
|
11
11
|
threads << Thread.new do
|
12
12
|
loop do
|
13
13
|
STDOUT << '!'
|
14
|
-
if (result = HTTParty.get(
|
14
|
+
if (result = HTTParty.get(URL))
|
15
15
|
results << result
|
16
16
|
STDOUT << '.'
|
17
17
|
end
|
@@ -0,0 +1,27 @@
|
|
1
|
+
# frozen_string_literal: true
|
2
|
+
|
3
|
+
require 'bundler/setup'
|
4
|
+
require 'polyphony'
|
5
|
+
|
6
|
+
def lengthy_op
|
7
|
+
10.times { IO.orig_read(__FILE__) }
|
8
|
+
end
|
9
|
+
|
10
|
+
X = 1000
|
11
|
+
|
12
|
+
def blocking
|
13
|
+
t0 = Time.now
|
14
|
+
data = lengthy_op
|
15
|
+
X.times { lengthy_op }
|
16
|
+
puts "read blocking (#{Time.now - t0}s)"
|
17
|
+
end
|
18
|
+
|
19
|
+
def threaded
|
20
|
+
t0 = Time.now
|
21
|
+
data = Polyphony::Thread.process { lengthy_op }
|
22
|
+
X.times { Polyphony::Thread.process { lengthy_op } }
|
23
|
+
puts "read threaded (#{Time.now - t0}s)"
|
24
|
+
end
|
25
|
+
|
26
|
+
blocking
|
27
|
+
threaded
|
File without changes
|
data/ext/gyro/extconf.rb
CHANGED
@@ -17,6 +17,7 @@ $defs << "-DHAVE_SYS_RESOURCE_H" if have_header("sys/resource.h")
|
|
17
17
|
CONFIG["optflags"] << " -fno-strict-aliasing" unless RUBY_PLATFORM =~ /mswin/
|
18
18
|
|
19
19
|
CONFIG["optflags"] << " -Wcomment"
|
20
|
+
CONFIG["optflags"] << " -Wbitwise-op-parentheses"
|
20
21
|
|
21
22
|
dir_config "gyro_ext"
|
22
23
|
create_makefile "gyro_ext"
|
data/lib/polyphony/version.rb
CHANGED
data/polyphony.gemspec
CHANGED
@@ -18,15 +18,8 @@ Gem::Specification.new do |s|
|
|
18
18
|
s.require_paths = ["lib"]
|
19
19
|
s.required_ruby_version = '>= 2.6'
|
20
20
|
|
21
|
-
s.
|
22
|
-
|
23
|
-
s.add_runtime_dependency 'modulation', '~>0.25'
|
24
|
-
|
25
|
-
s.add_runtime_dependency 'http_parser.rb', '0.6.0'
|
26
|
-
s.add_runtime_dependency 'http-2', '0.10.0'
|
27
|
-
s.add_runtime_dependency 'rack'
|
21
|
+
s.add_runtime_dependency 'modulation', '~>1.0'
|
28
22
|
|
29
|
-
s.add_development_dependency 'hiredis', '0.6.3'
|
30
23
|
s.add_development_dependency 'httparty', '0.17.0'
|
31
24
|
s.add_development_dependency 'localhost', '1.1.4'
|
32
25
|
s.add_development_dependency 'minitest', '5.11.3'
|
@@ -35,5 +28,6 @@ Gem::Specification.new do |s|
|
|
35
28
|
s.add_development_dependency 'pg', '1.1.3'
|
36
29
|
s.add_development_dependency 'rake-compiler', '1.0.5'
|
37
30
|
s.add_development_dependency 'redis', '4.1.0'
|
38
|
-
s.add_development_dependency '
|
31
|
+
s.add_development_dependency 'hiredis', '0.6.3'
|
32
|
+
s.add_development_dependency 'http_parser.rb', '~>0.6.0'
|
39
33
|
end
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: polyphony
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: '0.
|
4
|
+
version: '0.24'
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Sharon Rosner
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2020-01-
|
11
|
+
date: 2020-01-08 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: modulation
|
@@ -16,70 +16,14 @@ dependencies:
|
|
16
16
|
requirements:
|
17
17
|
- - "~>"
|
18
18
|
- !ruby/object:Gem::Version
|
19
|
-
version: '0
|
19
|
+
version: '1.0'
|
20
20
|
type: :runtime
|
21
21
|
prerelease: false
|
22
22
|
version_requirements: !ruby/object:Gem::Requirement
|
23
23
|
requirements:
|
24
24
|
- - "~>"
|
25
25
|
- !ruby/object:Gem::Version
|
26
|
-
version: '0
|
27
|
-
- !ruby/object:Gem::Dependency
|
28
|
-
name: http_parser.rb
|
29
|
-
requirement: !ruby/object:Gem::Requirement
|
30
|
-
requirements:
|
31
|
-
- - '='
|
32
|
-
- !ruby/object:Gem::Version
|
33
|
-
version: 0.6.0
|
34
|
-
type: :runtime
|
35
|
-
prerelease: false
|
36
|
-
version_requirements: !ruby/object:Gem::Requirement
|
37
|
-
requirements:
|
38
|
-
- - '='
|
39
|
-
- !ruby/object:Gem::Version
|
40
|
-
version: 0.6.0
|
41
|
-
- !ruby/object:Gem::Dependency
|
42
|
-
name: http-2
|
43
|
-
requirement: !ruby/object:Gem::Requirement
|
44
|
-
requirements:
|
45
|
-
- - '='
|
46
|
-
- !ruby/object:Gem::Version
|
47
|
-
version: 0.10.0
|
48
|
-
type: :runtime
|
49
|
-
prerelease: false
|
50
|
-
version_requirements: !ruby/object:Gem::Requirement
|
51
|
-
requirements:
|
52
|
-
- - '='
|
53
|
-
- !ruby/object:Gem::Version
|
54
|
-
version: 0.10.0
|
55
|
-
- !ruby/object:Gem::Dependency
|
56
|
-
name: rack
|
57
|
-
requirement: !ruby/object:Gem::Requirement
|
58
|
-
requirements:
|
59
|
-
- - ">="
|
60
|
-
- !ruby/object:Gem::Version
|
61
|
-
version: '0'
|
62
|
-
type: :runtime
|
63
|
-
prerelease: false
|
64
|
-
version_requirements: !ruby/object:Gem::Requirement
|
65
|
-
requirements:
|
66
|
-
- - ">="
|
67
|
-
- !ruby/object:Gem::Version
|
68
|
-
version: '0'
|
69
|
-
- !ruby/object:Gem::Dependency
|
70
|
-
name: hiredis
|
71
|
-
requirement: !ruby/object:Gem::Requirement
|
72
|
-
requirements:
|
73
|
-
- - '='
|
74
|
-
- !ruby/object:Gem::Version
|
75
|
-
version: 0.6.3
|
76
|
-
type: :development
|
77
|
-
prerelease: false
|
78
|
-
version_requirements: !ruby/object:Gem::Requirement
|
79
|
-
requirements:
|
80
|
-
- - '='
|
81
|
-
- !ruby/object:Gem::Version
|
82
|
-
version: 0.6.3
|
26
|
+
version: '1.0'
|
83
27
|
- !ruby/object:Gem::Dependency
|
84
28
|
name: httparty
|
85
29
|
requirement: !ruby/object:Gem::Requirement
|
@@ -193,23 +137,36 @@ dependencies:
|
|
193
137
|
- !ruby/object:Gem::Version
|
194
138
|
version: 4.1.0
|
195
139
|
- !ruby/object:Gem::Dependency
|
196
|
-
name:
|
140
|
+
name: hiredis
|
197
141
|
requirement: !ruby/object:Gem::Requirement
|
198
142
|
requirements:
|
199
143
|
- - '='
|
200
144
|
- !ruby/object:Gem::Version
|
201
|
-
version:
|
145
|
+
version: 0.6.3
|
202
146
|
type: :development
|
203
147
|
prerelease: false
|
204
148
|
version_requirements: !ruby/object:Gem::Requirement
|
205
149
|
requirements:
|
206
150
|
- - '='
|
207
151
|
- !ruby/object:Gem::Version
|
208
|
-
version:
|
152
|
+
version: 0.6.3
|
153
|
+
- !ruby/object:Gem::Dependency
|
154
|
+
name: http_parser.rb
|
155
|
+
requirement: !ruby/object:Gem::Requirement
|
156
|
+
requirements:
|
157
|
+
- - "~>"
|
158
|
+
- !ruby/object:Gem::Version
|
159
|
+
version: 0.6.0
|
160
|
+
type: :development
|
161
|
+
prerelease: false
|
162
|
+
version_requirements: !ruby/object:Gem::Requirement
|
163
|
+
requirements:
|
164
|
+
- - "~>"
|
165
|
+
- !ruby/object:Gem::Version
|
166
|
+
version: 0.6.0
|
209
167
|
description:
|
210
168
|
email: ciconia@gmail.com
|
211
|
-
executables:
|
212
|
-
- poly
|
169
|
+
executables: []
|
213
170
|
extensions:
|
214
171
|
- ext/gyro/extconf.rb
|
215
172
|
extra_rdoc_files:
|
@@ -226,7 +183,6 @@ files:
|
|
226
183
|
- README.md
|
227
184
|
- Rakefile
|
228
185
|
- TODO.md
|
229
|
-
- bin/poly
|
230
186
|
- docs/README.md
|
231
187
|
- docs/getting-started/installing.md
|
232
188
|
- docs/getting-started/tutorial.md
|
@@ -242,74 +198,23 @@ files:
|
|
242
198
|
- examples/core/02-awaiting-coprocesses.rb
|
243
199
|
- examples/core/03-interrupting.rb
|
244
200
|
- examples/core/04-no-auto-run.rb
|
245
|
-
- examples/core/
|
246
|
-
- examples/core/
|
247
|
-
- examples/core/
|
248
|
-
- examples/core/
|
249
|
-
- examples/core/
|
250
|
-
- examples/core/
|
251
|
-
- examples/core/
|
252
|
-
- examples/core/
|
253
|
-
- examples/core/
|
254
|
-
- examples/core/
|
255
|
-
- examples/core/
|
256
|
-
- examples/core/
|
257
|
-
- examples/core/
|
258
|
-
- examples/core/
|
259
|
-
- examples/core/
|
260
|
-
- examples/core/
|
261
|
-
- examples/core/
|
262
|
-
- examples/core/nested_multiple_spin.rb
|
263
|
-
- examples/core/nested_spin.rb
|
264
|
-
- examples/core/pingpong.rb
|
265
|
-
- examples/core/pulse.rb
|
266
|
-
- examples/core/resource.rb
|
267
|
-
- examples/core/resource_cancel.rb
|
268
|
-
- examples/core/resource_delegate.rb
|
269
|
-
- examples/core/sleep.rb
|
270
|
-
- examples/core/sleep_spin.rb
|
271
|
-
- examples/core/snooze.rb
|
272
|
-
- examples/core/spin_error.rb
|
273
|
-
- examples/core/spin_error_backtrace.rb
|
274
|
-
- examples/core/spin_uncaught_error.rb
|
275
|
-
- examples/core/supervisor.rb
|
276
|
-
- examples/core/supervisor_with_cancel_scope.rb
|
277
|
-
- examples/core/supervisor_with_error.rb
|
278
|
-
- examples/core/supervisor_with_manual_move_on.rb
|
279
|
-
- examples/core/suspend.rb
|
280
|
-
- examples/core/thread.rb
|
281
|
-
- examples/core/thread_cancel.rb
|
282
|
-
- examples/core/thread_pool.rb
|
283
|
-
- examples/core/thread_pool_perf.rb
|
284
|
-
- examples/core/throttle.rb
|
285
|
-
- examples/core/timeout.rb
|
286
|
-
- examples/core/wait_for_signal.rb
|
287
|
-
- examples/fs/read.rb
|
288
|
-
- examples/http/config.ru
|
289
|
-
- examples/http/cuba.ru
|
290
|
-
- examples/http/happy_eyeballs.rb
|
291
|
-
- examples/http/http2_raw.rb
|
292
|
-
- examples/http/http_client.rb
|
293
|
-
- examples/http/http_get.rb
|
294
|
-
- examples/http/http_parse_experiment.rb
|
295
|
-
- examples/http/http_proxy.rb
|
296
|
-
- examples/http/http_server.js
|
297
|
-
- examples/http/http_server.rb
|
298
|
-
- examples/http/http_server_forked.rb
|
299
|
-
- examples/http/http_server_graceful.rb
|
300
|
-
- examples/http/http_server_simple.rb
|
301
|
-
- examples/http/http_server_throttled.rb
|
302
|
-
- examples/http/http_ws_server.rb
|
303
|
-
- examples/http/https_raw_client.rb
|
304
|
-
- examples/http/https_server.rb
|
305
|
-
- examples/http/https_wss_server.rb
|
306
|
-
- examples/http/rack_server.rb
|
307
|
-
- examples/http/rack_server_https.rb
|
308
|
-
- examples/http/rack_server_https_forked.rb
|
309
|
-
- examples/http/websocket_secure_server.rb
|
310
|
-
- examples/http/websocket_server.rb
|
311
|
-
- examples/http/ws_page.html
|
312
|
-
- examples/http/wss_page.html
|
201
|
+
- examples/core/xx-channels.rb
|
202
|
+
- examples/core/xx-deferring-an-operation.rb
|
203
|
+
- examples/core/xx-erlang-style-genserver.rb
|
204
|
+
- examples/core/xx-forking.rb
|
205
|
+
- examples/core/xx-move_on.rb
|
206
|
+
- examples/core/xx-recurrent-timer.rb
|
207
|
+
- examples/core/xx-resource_cancel.rb
|
208
|
+
- examples/core/xx-resource_delegate.rb
|
209
|
+
- examples/core/xx-signals.rb
|
210
|
+
- examples/core/xx-sleeping.rb
|
211
|
+
- examples/core/xx-spin_error_backtrace.rb
|
212
|
+
- examples/core/xx-supervisors.rb
|
213
|
+
- examples/core/xx-thread_cancel.rb
|
214
|
+
- examples/core/xx-thread_pool.rb
|
215
|
+
- examples/core/xx-throttling.rb
|
216
|
+
- examples/core/xx-timeout.rb
|
217
|
+
- examples/core/xx-using-a-mutex.rb
|
313
218
|
- examples/interfaces/pg_client.rb
|
314
219
|
- examples/interfaces/pg_pool.rb
|
315
220
|
- examples/interfaces/pg_transaction.rb
|
@@ -317,29 +222,31 @@ files:
|
|
317
222
|
- examples/interfaces/redis_client.rb
|
318
223
|
- examples/interfaces/redis_pubsub.rb
|
319
224
|
- examples/interfaces/redis_pubsub_perf.rb
|
320
|
-
- examples/io/backticks.rb
|
321
|
-
- examples/io/
|
322
|
-
- examples/io/
|
323
|
-
- examples/io/
|
324
|
-
- examples/io/
|
325
|
-
- examples/io/
|
326
|
-
- examples/io/
|
327
|
-
- examples/io/
|
328
|
-
- examples/io/
|
329
|
-
- examples/io/
|
330
|
-
- examples/io/
|
331
|
-
- examples/io/
|
332
|
-
- examples/io/
|
333
|
-
- examples/io/
|
334
|
-
- examples/
|
335
|
-
- examples/
|
336
|
-
- examples/io/tcpserver.rb
|
337
|
-
- examples/io/tcpsocket.rb
|
225
|
+
- examples/io/xx-backticks.rb
|
226
|
+
- examples/io/xx-echo_client.rb
|
227
|
+
- examples/io/xx-echo_client_from_stdin.rb
|
228
|
+
- examples/io/xx-echo_pipe.rb
|
229
|
+
- examples/io/xx-echo_server.rb
|
230
|
+
- examples/io/xx-echo_server_with_timeout.rb
|
231
|
+
- examples/io/xx-echo_stdin.rb
|
232
|
+
- examples/io/xx-httparty.rb
|
233
|
+
- examples/io/xx-irb.rb
|
234
|
+
- examples/io/xx-net-http.rb
|
235
|
+
- examples/io/xx-open.rb
|
236
|
+
- examples/io/xx-system.rb
|
237
|
+
- examples/io/xx-tcpserver.rb
|
238
|
+
- examples/io/xx-tcpsocket.rb
|
239
|
+
- examples/performance/fs_read.rb
|
240
|
+
- examples/performance/mem-usage.rb
|
338
241
|
- examples/performance/multi_snooze.rb
|
339
242
|
- examples/performance/snooze.rb
|
340
243
|
- examples/performance/snooze_raw.rb
|
341
244
|
- examples/performance/thread-vs-fiber/polyphony_server.rb
|
342
245
|
- examples/performance/thread-vs-fiber/threaded_server.rb
|
246
|
+
- examples/performance/thread-vs-fiber/xx-httparty_multi.rb
|
247
|
+
- examples/performance/thread-vs-fiber/xx-httparty_threaded.rb
|
248
|
+
- examples/performance/thread.rb
|
249
|
+
- examples/performance/thread_pool_perf.rb
|
343
250
|
- ext/gyro/async.c
|
344
251
|
- ext/gyro/child.c
|
345
252
|
- ext/gyro/extconf.rb
|
@@ -367,7 +274,6 @@ files:
|
|
367
274
|
- ext/libev/ev_win32.c
|
368
275
|
- ext/libev/ev_wrap.h
|
369
276
|
- ext/libev/test_libev_win32.c
|
370
|
-
- lib/ev_ext.bundle
|
371
277
|
- lib/polyphony.rb
|
372
278
|
- lib/polyphony/core/cancel_scope.rb
|
373
279
|
- lib/polyphony/core/channel.rb
|
@@ -385,24 +291,11 @@ files:
|
|
385
291
|
- lib/polyphony/extensions/openssl.rb
|
386
292
|
- lib/polyphony/extensions/socket.rb
|
387
293
|
- lib/polyphony/fs.rb
|
388
|
-
- lib/polyphony/http.rb
|
389
|
-
- lib/polyphony/http/client/agent.rb
|
390
|
-
- lib/polyphony/http/client/http1.rb
|
391
|
-
- lib/polyphony/http/client/http2.rb
|
392
|
-
- lib/polyphony/http/client/response.rb
|
393
|
-
- lib/polyphony/http/client/site_connection_manager.rb
|
394
|
-
- lib/polyphony/http/server.rb
|
395
|
-
- lib/polyphony/http/server/http1.rb
|
396
|
-
- lib/polyphony/http/server/http2.rb
|
397
|
-
- lib/polyphony/http/server/http2_stream.rb
|
398
|
-
- lib/polyphony/http/server/rack.rb
|
399
|
-
- lib/polyphony/http/server/request.rb
|
400
294
|
- lib/polyphony/line_reader.rb
|
401
295
|
- lib/polyphony/net.rb
|
402
296
|
- lib/polyphony/postgres.rb
|
403
297
|
- lib/polyphony/redis.rb
|
404
298
|
- lib/polyphony/version.rb
|
405
|
-
- lib/polyphony/websocket.rb
|
406
299
|
- polyphony.gemspec
|
407
300
|
- test/coverage.rb
|
408
301
|
- test/eg.rb
|
@@ -413,7 +306,6 @@ files:
|
|
413
306
|
- test/test_coprocess.rb
|
414
307
|
- test/test_global_api.rb
|
415
308
|
- test/test_gyro.rb
|
416
|
-
- test/test_http_server.rb
|
417
309
|
- test/test_io.rb
|
418
310
|
- test/test_kernel.rb
|
419
311
|
- test/test_resource_pool.rb
|