zookeeper 1.4.3-java → 1.4.4-java
Sign up to get free protection for your applications and to get access to all the features.
- data/CHANGELOG +4 -0
- data/ext/Rakefile +1 -0
- data/ext/extconf.rb +2 -1
- data/ext/patch-zookeeper +24 -0
- data/lib/zookeeper/version.rb +1 -1
- metadata +5 -4
data/CHANGELOG
CHANGED
data/ext/Rakefile
CHANGED
data/ext/extconf.rb
CHANGED
@@ -4,6 +4,7 @@ require 'fileutils'
|
|
4
4
|
|
5
5
|
HERE = File.expand_path(File.dirname(__FILE__))
|
6
6
|
BUNDLE = Dir.glob("zkc-*.tar.gz").first
|
7
|
+
ZKPATCH = "patch-zookeeper"
|
7
8
|
|
8
9
|
BUNDLE_PATH = File.join(HERE, 'c')
|
9
10
|
|
@@ -57,7 +58,7 @@ Dir.chdir(HERE) do
|
|
57
58
|
puts "Building zkc."
|
58
59
|
|
59
60
|
unless File.exists?('c')
|
60
|
-
puts(cmd = "tar xzf #{BUNDLE} 2>&1")
|
61
|
+
puts(cmd = "tar xzf #{BUNDLE} 2>&1 && patch -p0 < #{ZKPATCH} 2>&1")
|
61
62
|
raise "'#{cmd}' failed" unless system(cmd)
|
62
63
|
end
|
63
64
|
|
data/ext/patch-zookeeper
ADDED
@@ -0,0 +1,24 @@
|
|
1
|
+
--- c/src/zookeeper.c.orig 2013-04-22 16:20:14.000000000 -0700
|
2
|
+
+++ c/src/zookeeper.c 2013-04-22 16:21:36.000000000 -0700
|
3
|
+
@@ -413,7 +413,9 @@
|
4
|
+
static int getaddrinfo_errno(int rc) {
|
5
|
+
switch(rc) {
|
6
|
+
case EAI_NONAME:
|
7
|
+
+#ifdef EAI_NODATA
|
8
|
+
case EAI_NODATA:
|
9
|
+
+#endif
|
10
|
+
return ENOENT;
|
11
|
+
case EAI_MEMORY:
|
12
|
+
return ENOMEM;
|
13
|
+
@@ -546,7 +548,11 @@
|
14
|
+
//EAI_BADFLAGS or EAI_ADDRFAMILY with AF_UNSPEC and
|
15
|
+
// ai_flags as AI_ADDRCONFIG
|
16
|
+
if ((hints.ai_flags == AI_ADDRCONFIG) &&
|
17
|
+
+#ifdef EAI_ADDRFAMILY
|
18
|
+
((rc ==EAI_BADFLAGS) || (rc == EAI_ADDRFAMILY))) {
|
19
|
+
+#else
|
20
|
+
+ (rc ==EAI_BADFLAGS)) {
|
21
|
+
+#endif
|
22
|
+
//reset ai_flags to null
|
23
|
+
hints.ai_flags = 0;
|
24
|
+
//retry getaddrinfo
|
data/lib/zookeeper/version.rb
CHANGED
metadata
CHANGED
@@ -1,13 +1,13 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: zookeeper
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
hash:
|
4
|
+
hash: 15
|
5
5
|
prerelease:
|
6
6
|
segments:
|
7
7
|
- 1
|
8
8
|
- 4
|
9
|
-
-
|
10
|
-
version: 1.4.
|
9
|
+
- 4
|
10
|
+
version: 1.4.4
|
11
11
|
platform: java
|
12
12
|
authors:
|
13
13
|
- Phillip Pearson
|
@@ -20,7 +20,7 @@ autorequire:
|
|
20
20
|
bindir: bin
|
21
21
|
cert_chain: []
|
22
22
|
|
23
|
-
date: 2013-
|
23
|
+
date: 2013-04-27 00:00:00 Z
|
24
24
|
dependencies:
|
25
25
|
- !ruby/object:Gem::Dependency
|
26
26
|
name: slyphon-log4j
|
@@ -93,6 +93,7 @@ files:
|
|
93
93
|
- ext/event_lib.h
|
94
94
|
- ext/extconf.rb
|
95
95
|
- ext/generate_gvl_code.rb
|
96
|
+
- ext/patch-zookeeper
|
96
97
|
- ext/zkc-3.3.5.tar.gz
|
97
98
|
- ext/zkrb.c
|
98
99
|
- ext/zkrb_wrapper.c
|