rims 0.2.3 → 0.2.4

Sign up to get free protection for your applications and to get access to all the features.
@@ -642,10 +642,10 @@ module RIMS::Test
642
642
  end
643
643
 
644
644
  data('default' => [ 1024 * 16, {} ],
645
- 'config' => [ 1024 * 64, { server: { send_buffer_limit_size: 1024 * 64 } } ],
645
+ 'config' => [ 1024 * 64, { connection: { send_buffer_limit_size: 1024 * 64 } } ],
646
646
  'compat' => [ 1024 * 64, { send_buffer_limit: 1024 * 64 } ],
647
647
  'priority' => [ 1024 * 64,
648
- { server: { send_buffer_limit_size: 1024 * 64 },
648
+ { connection: { send_buffer_limit_size: 1024 * 64 },
649
649
  send_buffer_limit: 1024 * 32
650
650
  }
651
651
  ])
@@ -655,6 +655,28 @@ module RIMS::Test
655
655
  assert_equal(expected_value, @c.send_buffer_limit_size)
656
656
  end
657
657
 
658
+ data('default' => [ { read_polling_interval_seconds: 1,
659
+ command_wait_timeout_seconds: 60 * 30
660
+ },
661
+ {}
662
+ ],
663
+ 'config' => [ { read_polling_interval_seconds: 5,
664
+ command_wait_timeout_seconds: 60 * 60
665
+ },
666
+ { connection: {
667
+ read_polling_interval_seconds: 5,
668
+ command_wait_timeout_seconds: 60 * 60
669
+ }
670
+ }
671
+ ])
672
+ def test_connection_limits(data)
673
+ expected_values, config = data
674
+ @c.load(config)
675
+ limits = @c.connection_limits
676
+ assert_instance_of(RIMS::Protocol::ConnectionLimits, limits)
677
+ assert_equal(expected_values, limits.to_h)
678
+ end
679
+
658
680
  data('default' => [ 30, {} ],
659
681
  'config' => [ 15, { lock: { read_lock_timeout_seconds: 15 } } ],
660
682
  'compat' => [ 15, { read_lock_timeout_seconds: 15 } ],
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: rims
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.2.3
4
+ version: 0.2.4
5
5
  platform: ruby
6
6
  authors:
7
7
  - TOKI Yoshinori
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2019-04-10 00:00:00.000000000 Z
11
+ date: 2019-04-25 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: riser
@@ -16,14 +16,14 @@ dependencies:
16
16
  requirements:
17
17
  - - ">="
18
18
  - !ruby/object:Gem::Version
19
- version: 0.1.7
19
+ version: 0.1.8
20
20
  type: :runtime
21
21
  prerelease: false
22
22
  version_requirements: !ruby/object:Gem::Requirement
23
23
  requirements:
24
24
  - - ">="
25
25
  - !ruby/object:Gem::Version
26
- version: 0.1.7
26
+ version: 0.1.8
27
27
  - !ruby/object:Gem::Dependency
28
28
  name: logger-joint
29
29
  requirement: !ruby/object:Gem::Requirement
@@ -128,6 +128,7 @@ files:
128
128
  - lib/rims/passwd.rb
129
129
  - lib/rims/pool.rb
130
130
  - lib/rims/protocol.rb
131
+ - lib/rims/protocol/connection.rb
131
132
  - lib/rims/protocol/decoder.rb
132
133
  - lib/rims/protocol/parser.rb
133
134
  - lib/rims/rfc822.rb
@@ -151,6 +152,7 @@ files:
151
152
  - test/test_passwd.rb
152
153
  - test/test_protocol.rb
153
154
  - test/test_protocol_auth.rb
155
+ - test/test_protocol_connection.rb
154
156
  - test/test_protocol_decoder.rb
155
157
  - test/test_protocol_fetch.rb
156
158
  - test/test_protocol_request.rb
@@ -196,6 +198,7 @@ test_files:
196
198
  - test/test_passwd.rb
197
199
  - test/test_protocol.rb
198
200
  - test/test_protocol_auth.rb
201
+ - test/test_protocol_connection.rb
199
202
  - test/test_protocol_decoder.rb
200
203
  - test/test_protocol_fetch.rb
201
204
  - test/test_protocol_request.rb