murmur-rpc 0.0.6 → 0.0.7

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.
@@ -7,12 +7,13 @@ module Murmur
7
7
  class ::InvalidMetaException < Exception; end
8
8
  class ::Murmur::Ice::InvalidServerException < Exception; end
9
9
  class Meta
10
- def initialize(glacierHost = nil, glacierPort = nil, user = nil, pass = nil, host = "127.0.0.1", port = "6502", icesecret = nil, proto = "tcp")
10
+ def initialize(glacierHost = nil, glacierPort = nil, user = nil, pass = nil, host = "127.0.0.1", port = "6502", icesecret = nil, idletime = nil)
11
11
  ic = nil
12
12
  if icesecret and icesecret != ""
13
13
  props = ::Ice::createProperties
14
14
  props.setProperty "Ice.ImplicitContext", "Shared"
15
15
  props.setProperty "Ice.MessageSizeMax", "65536"
16
+ props.setProperty "Ice.ACM.Client", idletime.to_s unless idletime == nil
16
17
  idd = ::Ice::InitializationData.new
17
18
  idd.properties = props
18
19
  ic = ::Ice::initialize idd
@@ -29,7 +30,7 @@ module Murmur
29
30
  @router = ::Glacier2::RouterPrx::uncheckedCast(prx).ice_router(nil)
30
31
  @session = @router.createSession(user, pass)
31
32
  end
32
- conn = "#{proto} -h #{host} -p #{port}"
33
+ conn = "tcp -h #{host} -p #{port}"
33
34
  @meta = add_proxy_router(Murmur::MetaPrx::checkedCast(ic.stringToProxy("Meta:#{conn}")))
34
35
  raise "Invalid proxy" unless @meta
35
36
 
data/lib/murmur-rpc.rb CHANGED
@@ -1,5 +1,5 @@
1
1
  require File.dirname(__FILE__) + '/interfaces/ice.rb'
2
2
 
3
3
  module MurmurRPC
4
- VERSION="0.0.6"
4
+ VERSION="0.0.7"
5
5
  end
metadata CHANGED
@@ -2,7 +2,7 @@
2
2
  name: murmur-rpc
3
3
  version: !ruby/object:Gem::Version
4
4
  prerelease:
5
- version: 0.0.6
5
+ version: 0.0.7
6
6
  platform: ruby
7
7
  authors:
8
8
  - Brian Stolz