serverengine 2.0.1-x64-mingw32 → 2.0.2-x64-mingw32
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/Changelog +5 -0
- data/lib/serverengine/process_manager.rb +23 -24
- data/lib/serverengine/socket_manager.rb +1 -1
- data/lib/serverengine/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: ecb81bf960bfaf3ef9f3b9ef8cd6ca77835bb473
|
4
|
+
data.tar.gz: 84c3d6e12eb76f81a1768daafb5e78c9b355857d
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 5a9dde3a277416f1665b8559300ea7248ff6a8fc3b611505fc7febae2462df00a240eb4c124290cd7fe7c0c962431f566c4022590634615ffd5f11aac424fd44
|
7
|
+
data.tar.gz: 2479f98f06b7298cafc88b66f7c03829f07469f5bf8c02b5816c98aee9ec3be1df7950c3dfe8341bb08c10bc21be96a53fc671ec22861bec1faccc0dcd8222b0
|
data/Changelog
CHANGED
@@ -239,34 +239,33 @@ module ServerEngine
|
|
239
239
|
raise AlreadyClosedError.new
|
240
240
|
end
|
241
241
|
|
242
|
-
|
242
|
+
if @rpipes.empty?
|
243
|
+
sleep blocking_timeout if blocking_timeout > 0
|
244
|
+
return nil
|
245
|
+
end
|
243
246
|
|
244
|
-
|
245
|
-
|
247
|
+
if ServerEngine.windows?
|
248
|
+
raise "heartbeat is not supported on Windows platform. @rpipes must be empty."
|
249
|
+
end
|
246
250
|
|
247
|
-
|
248
|
-
|
249
|
-
return nil
|
250
|
-
end
|
251
|
+
time = Time.now
|
252
|
+
ready_pipes, _, _ = IO.select(@rpipes.keys, nil, nil, blocking_timeout)
|
251
253
|
|
252
|
-
|
253
|
-
|
254
|
-
|
255
|
-
|
256
|
-
|
257
|
-
|
258
|
-
|
259
|
-
|
260
|
-
|
261
|
-
|
262
|
-
|
263
|
-
|
264
|
-
next
|
265
|
-
end
|
254
|
+
if ready_pipes
|
255
|
+
ready_pipes.each do |r|
|
256
|
+
begin
|
257
|
+
r.read_nonblock(1024, @read_buffer)
|
258
|
+
rescue Errno::EAGAIN, Errno::EINTR
|
259
|
+
next
|
260
|
+
rescue #EOFError
|
261
|
+
m = @rpipes.delete(r)
|
262
|
+
m.start_immediate_stop!
|
263
|
+
r.close rescue nil
|
264
|
+
next
|
265
|
+
end
|
266
266
|
|
267
|
-
|
268
|
-
|
269
|
-
end
|
267
|
+
if m = @rpipes[r]
|
268
|
+
m.last_heartbeat_time = time
|
270
269
|
end
|
271
270
|
end
|
272
271
|
end
|
data/lib/serverengine/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: serverengine
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 2.0.
|
4
|
+
version: 2.0.2
|
5
5
|
platform: x64-mingw32
|
6
6
|
authors:
|
7
7
|
- Sadayuki Furuhashi
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2016-
|
11
|
+
date: 2016-11-17 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: sigdump
|