packet 0.1.7 → 0.1.8
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.
- data/README +0 -6
- data/lib/packet/packet_nbio.rb +2 -2
- data/lib/packet.rb +1 -1
- metadata +2 -2
data/README
CHANGED
@@ -218,12 +218,6 @@ end
|
|
218
218
|
end
|
219
219
|
end
|
220
220
|
|
221
|
-
=== Passing file descriptors to workers :
|
222
|
-
Packet, allows this style of load
|
223
|
-
distribution as well, you can use method send_fd to
|
224
|
-
pass file descriptors to workers.
|
225
|
-
WARNING: This feature hasn't been tested well.
|
226
|
-
|
227
221
|
=== Disable auto loading of certain workers:
|
228
222
|
Sometimes, you would need to start a
|
229
223
|
worker at runtime and don't want this pre-forking mechanism.
|
data/lib/packet/packet_nbio.rb
CHANGED
@@ -13,8 +13,8 @@ module Packet
|
|
13
13
|
def read_data(t_sock)
|
14
14
|
sock_data = []
|
15
15
|
begin
|
16
|
-
while(t_data = t_sock.
|
17
|
-
|
16
|
+
while(t_data = t_sock.recv_nonblock((16*1024)-1))
|
17
|
+
raise DisconnectError.new(t_sock,sock_data.join) if t_data.empty?
|
18
18
|
sock_data << t_data
|
19
19
|
end
|
20
20
|
rescue Errno::EAGAIN
|
data/lib/packet.rb
CHANGED
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: packet
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.1.
|
4
|
+
version: 0.1.8
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Hemant Kumar
|
@@ -9,7 +9,7 @@ autorequire:
|
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
11
|
|
12
|
-
date: 2008-07-
|
12
|
+
date: 2008-07-18 00:00:00 +05:30
|
13
13
|
default_executable:
|
14
14
|
dependencies: []
|
15
15
|
|