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 +4 -4
- data/Changelog +4 -0
- data/lib/serverengine/socket_manager.rb +8 -2
- data/lib/serverengine/version.rb +1 -1
- metadata +3 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: f8f37ec52120838cefe5c95cc6d1bdf5d90e7443
|
4
|
+
data.tar.gz: c4300f6ffa5d768e78fbb0784dce4d6f6949d2a3
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 7f4e66e96d98e218237c43a303164cf55b5d860bc9762fc790843ffdb7c7cee6c27a3e8715821b4d641cea434c6841db385a17d6266a52ab24ad4aabc6b0a04b
|
7
|
+
data.tar.gz: 69790705dc298302ff066d99c8af36523446d91f8369a7a344471c562c05dd4089fcd0d4ca7b413c191636a716ed49190a5d94212aa57971390a761ca4ad77a1
|
data/Changelog
CHANGED
@@ -138,7 +138,10 @@ module ServerEngine
|
|
138
138
|
|
139
139
|
def process_peer(peer)
|
140
140
|
while true
|
141
|
-
|
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
|
-
|
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
|
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.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:
|
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.
|
157
|
+
rubygems_version: 2.6.13
|
158
158
|
signing_key:
|
159
159
|
specification_version: 4
|
160
160
|
summary: ServerEngine - multiprocess server framework
|