vmware_web_service 0.2.1 → 0.2.2
Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 21d49bf037b0977626d726d0de60e17d7372a5f7
|
4
|
+
data.tar.gz: c740baa3de205e2769ee68d6e0b8c5bb1475c657
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: e9c648df9426698e65e5b2050c5359c35cabab56a706183ddbc4f3c593d70e205b33b9b7acd0bbae8a3f13fe8d6d9d16ea5ae770e0dceaa583383a7f7f7a46b0
|
7
|
+
data.tar.gz: 5254037a72f24ec46e88808c232a7864c38615e64f483269ea64cf88b03fb5b4156fdc3467dade9b705b0efa9fa8c60205fb3706a28ce20cb6249ab4998454cc
|
@@ -38,6 +38,8 @@ class MiqVimBroker
|
|
38
38
|
require 'httpclient' # needed for exception classes
|
39
39
|
require 'VMwareWebService/MiqVimDump'
|
40
40
|
require 'VMwareWebService/MiqVimVdlMod'
|
41
|
+
require 'VMwareWebService/MiqVimDrbDebug'
|
42
|
+
|
41
43
|
#
|
42
44
|
# Modify the meta-class of DRb::DRbObject
|
43
45
|
# so we can alias class methods
|
@@ -0,0 +1,38 @@
|
|
1
|
+
module DRb
|
2
|
+
class DRbMessage
|
3
|
+
def load(soc) # :nodoc:
|
4
|
+
begin
|
5
|
+
sz = soc.read(4) # sizeof (N)
|
6
|
+
rescue
|
7
|
+
raise(DRbConnError, $!.message, $!.backtrace)
|
8
|
+
end
|
9
|
+
raise(DRbConnError, 'connection closed') if sz.nil?
|
10
|
+
raise(DRbConnError, 'premature header') if sz.size < 4
|
11
|
+
sz = sz.unpack('N')[0]
|
12
|
+
raise(DRbConnError, "too large packet #{sz}") if @load_limit < sz
|
13
|
+
begin
|
14
|
+
str = soc.read(sz)
|
15
|
+
rescue
|
16
|
+
raise(DRbConnError, $!.message, $!.backtrace)
|
17
|
+
end
|
18
|
+
raise(DRbConnError, 'connection closed') if str.nil?
|
19
|
+
raise(DRbConnError, 'premature marshal format(can\'t read)') if str.size < sz
|
20
|
+
DRb.mutex.synchronize do
|
21
|
+
begin
|
22
|
+
save = Thread.current[:drb_untaint]
|
23
|
+
Thread.current[:drb_untaint] = []
|
24
|
+
Marshal::load(str)
|
25
|
+
rescue NameError, ArgumentError
|
26
|
+
DRbUnknown.new($!, str)
|
27
|
+
rescue TypeError => err
|
28
|
+
raise TypeError, "#{err}\n#{str.hex_dump}"
|
29
|
+
ensure
|
30
|
+
Thread.current[:drb_untaint].each do |x|
|
31
|
+
x.untaint
|
32
|
+
end
|
33
|
+
Thread.current[:drb_untaint] = save
|
34
|
+
end
|
35
|
+
end
|
36
|
+
end
|
37
|
+
end
|
38
|
+
end
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: vmware_web_service
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.2.
|
4
|
+
version: 0.2.2
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- ManageIQ Developers
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2017-10-
|
11
|
+
date: 2017-10-30 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: activesupport
|
@@ -211,6 +211,7 @@ files:
|
|
211
211
|
- lib/VMwareWebService/MiqVimCoreUpdater.rb
|
212
212
|
- lib/VMwareWebService/MiqVimCustomizationSpecManager.rb
|
213
213
|
- lib/VMwareWebService/MiqVimDataStore.rb
|
214
|
+
- lib/VMwareWebService/MiqVimDrbDebug.rb
|
214
215
|
- lib/VMwareWebService/MiqVimDump.rb
|
215
216
|
- lib/VMwareWebService/MiqVimEventHistoryCollector.rb
|
216
217
|
- lib/VMwareWebService/MiqVimEventMonitor.rb
|