packet 0.1.7 → 0.1.8

Sign up to get free protection for your applications and to get access to all the features.
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.
@@ -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.read_nonblock((16*1024)-1))
17
- #raise DisconnectError.new(t_sock,sock_data.join) if t_data.empty?
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
@@ -29,5 +29,5 @@ require "packet/packet_worker"
29
29
  PACKET_APP = File.expand_path'../' unless defined?(PACKET_APP)
30
30
 
31
31
  module Packet
32
- VERSION='0.1.7'
32
+ VERSION='0.1.8'
33
33
  end
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.7
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 00:00:00 +05:30
12
+ date: 2008-07-18 00:00:00 +05:30
13
13
  default_executable:
14
14
  dependencies: []
15
15