einhorn 0.5.2 → 0.5.3
Sign up to get free protection for your applications and to get access to all the features.
- data/lib/einhorn/version.rb +1 -1
- data/lib/einhorn.rb +1 -0
- metadata +8 -3
data/lib/einhorn/version.rb
CHANGED
data/lib/einhorn.rb
CHANGED
@@ -148,6 +148,7 @@ module Einhorn
|
|
148
148
|
def self.bind(addr, port, flags)
|
149
149
|
log_info("Binding to #{addr}:#{port} with flags #{flags.inspect}")
|
150
150
|
sd = Socket.new(Socket::AF_INET, Socket::SOCK_STREAM, 0)
|
151
|
+
Einhorn::Compat.cloexec!(sd, false)
|
151
152
|
|
152
153
|
if flags.include?('r') || flags.include?('so_reuseaddr')
|
153
154
|
sd.setsockopt(Socket::SOL_SOCKET, Socket::SO_REUSEADDR, 1)
|
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.5.
|
4
|
+
version: 0.5.3
|
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-12-
|
12
|
+
date: 2013-12-27 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: rake
|
@@ -196,12 +196,18 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
196
196
|
- - ! '>='
|
197
197
|
- !ruby/object:Gem::Version
|
198
198
|
version: '0'
|
199
|
+
segments:
|
200
|
+
- 0
|
201
|
+
hash: 3143194096620305387
|
199
202
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
200
203
|
none: false
|
201
204
|
requirements:
|
202
205
|
- - ! '>='
|
203
206
|
- !ruby/object:Gem::Version
|
204
207
|
version: '0'
|
208
|
+
segments:
|
209
|
+
- 0
|
210
|
+
hash: 3143194096620305387
|
205
211
|
requirements: []
|
206
212
|
rubyforge_project:
|
207
213
|
rubygems_version: 1.8.23
|
@@ -216,4 +222,3 @@ test_files:
|
|
216
222
|
- test/unit/einhorn/command/interface.rb
|
217
223
|
- test/unit/einhorn/event.rb
|
218
224
|
- test/unit/einhorn/worker_pool.rb
|
219
|
-
has_rdoc:
|