einhorn 0.4.3 → 0.4.4

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.md CHANGED
@@ -81,15 +81,15 @@ Each address is specified as an ip/port pair, possibly accompanied by options:
81
81
 
82
82
  In the worker process, the opened file descriptors will be represented
83
83
  as file descriptor numbers in a series of environment variables named
84
- EINHORN_FD_1, EINHORN_FD_2, etc. (respecting the order that the `-b`
84
+ EINHORN_FD_0, EINHORN_FD_1, etc. (respecting the order that the `-b`
85
85
  options were provided in), with the total number of file descriptors
86
86
  in the EINHORN_FD_COUNT environment variable:
87
87
 
88
- EINHORN_FD_1="6" # 127.0.0.1:1234
88
+ EINHORN_FD_0="6" # 127.0.0.1:1234
89
89
  EINHORN_FD_COUNT="1"
90
90
 
91
- EINHORN_FD_1="6" # 127.0.0.1:1234,r
92
- EINHORN_FD_2="7" # 127.0.0.1:1235
91
+ EINHORN_FD_0="6" # 127.0.0.1:1234,r
92
+ EINHORN_FD_1="7" # 127.0.0.1:1235
93
93
  EINHORN_FD_COUNT="2"
94
94
 
95
95
  Valid opts are:
@@ -103,7 +103,7 @@ You can for example run:
103
103
 
104
104
  Which will run 4 copies of
105
105
 
106
- EINHORN_FD_1=6 EINHORN_FD_COUNT=1 example/time_server
106
+ EINHORN_FD_0=6 EINHORN_FD_COUNT=1 example/time_server
107
107
 
108
108
  Where file descriptor 6 is a server socket bound to `127.0.0.1:2345`
109
109
  and with `SO_REUSEADDR` set. It is then your application's job to
data/bin/einhorn CHANGED
@@ -57,15 +57,15 @@ Each address is specified as an ip/port pair, possibly accompanied by options:
57
57
 
58
58
  In the worker process, the opened file descriptors will be represented
59
59
  as file descriptor numbers in a series of environment variables named
60
- EINHORN_FD_1, EINHORN_FD_2, etc. (respecting the order that the `-b`
60
+ EINHORN_FD_0, EINHORN_FD_1, etc. (respecting the order that the `-b`
61
61
  options were provided in), with the total number of file descriptors
62
62
  in the EINHORN_FD_COUNT environment variable:
63
63
 
64
- EINHORN_FD_1="6" # 127.0.0.1:1234
64
+ EINHORN_FD_0="6" # 127.0.0.1:1234
65
65
  EINHORN_FD_COUNT="1"
66
66
 
67
- EINHORN_FD_1="6" # 127.0.0.1:1234,r
68
- EINHORN_FD_2="7" # 127.0.0.1:1235
67
+ EINHORN_FD_0="6" # 127.0.0.1:1234,r
68
+ EINHORN_FD_1="7" # 127.0.0.1:1235
69
69
  EINHORN_FD_COUNT="2"
70
70
 
71
71
  Valid opts are:
@@ -79,7 +79,7 @@ You can for example run:
79
79
 
80
80
  Which will run 4 copies of
81
81
 
82
- EINHORN_FD_1=6 EINHORN_FD_COUNT=1 example/time_server
82
+ EINHORN_FD_0=6 EINHORN_FD_COUNT=1 example/time_server
83
83
 
84
84
  Where file descriptor 6 is a server socket bound to `127.0.0.1:2345`
85
85
  and with `SO_REUSEADDR` set. It is then your application's job to
data/example/time_server CHANGED
@@ -16,7 +16,7 @@ require 'rubygems'
16
16
  require 'einhorn/worker'
17
17
 
18
18
  def einhorn_main
19
- puts "Called with ENV['EINHORN_FD_1']: #{ENV['EINHORN_FD_1']}"
19
+ puts "Called with ENV['EINHORN_FD_0']: #{ENV['EINHORN_FD_0']}"
20
20
 
21
21
  fd_num = Einhorn::Worker.socket!
22
22
  socket = Socket.for_fd(fd_num)
@@ -1,3 +1,3 @@
1
1
  module Einhorn
2
- VERSION = '0.4.3'
2
+ VERSION = '0.4.4'
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: einhorn
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.4.3
4
+ version: 0.4.4
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -9,7 +9,7 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2013-03-14 00:00:00.000000000 Z
12
+ date: 2013-03-15 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: rake