serverengine 2.0.5 → 2.0.6

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 1aa31d549d06f57019a2dc0a9d318adaec5f6e49
4
- data.tar.gz: 545d61737bcbf890287b2109c6c5109b03eb275e
3
+ metadata.gz: f8f37ec52120838cefe5c95cc6d1bdf5d90e7443
4
+ data.tar.gz: c4300f6ffa5d768e78fbb0784dce4d6f6949d2a3
5
5
  SHA512:
6
- metadata.gz: 4727c3d98b63e332184033a03de5b4359a01778053ef84a4bac8e1b82f4f21f952e58947b7e1cd4feb6c393c817e5ffcd4beddf46d078eeeaf7a0055cea9982e
7
- data.tar.gz: b1c191dd0844c1b27e91954cf3400d142ae3953e8e86093c38870a13b9c00e53b9b9b1d859eaaa803123601737804586023d65386c8a71ca25cbb978733a9a80
6
+ metadata.gz: 7f4e66e96d98e218237c43a303164cf55b5d860bc9762fc790843ffdb7c7cee6c27a3e8715821b4d641cea434c6841db385a17d6266a52ab24ad4aabc6b0a04b
7
+ data.tar.gz: 69790705dc298302ff066d99c8af36523446d91f8369a7a344471c562c05dd4089fcd0d4ca7b413c191636a716ed49190a5d94212aa57971390a761ca4ad77a1
data/Changelog CHANGED
@@ -1,3 +1,7 @@
1
+ 2018-02-09 version 2.0.6:
2
+
3
+ * Avoid thread error log in ruby 2.5
4
+
1
5
  2017-03-01 version 2.0.5:
2
6
 
3
7
  * Support SERVERENGINE_SOCKETMANAGER_SOCK_DIR environment variable to change
@@ -138,7 +138,10 @@ module ServerEngine
138
138
 
139
139
  def process_peer(peer)
140
140
  while true
141
- pid, method, bind, port = *SocketManager.recv_peer(peer)
141
+ res = SocketManager.recv_peer(peer)
142
+ return if res.nil?
143
+
144
+ pid, method, bind, port = *res
142
145
  begin
143
146
  send_socket(peer, pid, method, bind, port)
144
147
  rescue => e
@@ -157,7 +160,10 @@ module ServerEngine
157
160
  end
158
161
 
159
162
  def self.recv_peer(peer)
160
- len = peer.read(4).unpack('N').first
163
+ res = peer.read(4)
164
+ return nil if res.nil?
165
+
166
+ len = res.unpack('N').first
161
167
  data = peer.read(len)
162
168
  Marshal.load(data)
163
169
  end
@@ -1,3 +1,3 @@
1
1
  module ServerEngine
2
- VERSION = "2.0.5"
2
+ VERSION = "2.0.6"
3
3
  end
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.5
4
+ version: 2.0.6
5
5
  platform: ruby
6
6
  authors:
7
7
  - Sadayuki Furuhashi
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2017-03-01 00:00:00.000000000 Z
11
+ date: 2018-01-10 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: sigdump
@@ -154,7 +154,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
154
154
  version: '0'
155
155
  requirements: []
156
156
  rubyforge_project:
157
- rubygems_version: 2.6.8
157
+ rubygems_version: 2.6.13
158
158
  signing_key:
159
159
  specification_version: 4
160
160
  summary: ServerEngine - multiprocess server framework