em-berp-protocol 1.0.1 → 1.0.2
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.
data/lib/em-berp-protocol.rb
CHANGED
|
@@ -14,7 +14,7 @@ module EventMachine
|
|
|
14
14
|
slice = @buf.slice!(0,size)
|
|
15
15
|
receive_object(BERT.decode(slice))
|
|
16
16
|
rescue TypeError => e
|
|
17
|
-
handle_bert_error("TypeError: #{e}")
|
|
17
|
+
handle_bert_error("TypeError: #{e} with data #{slice.inspect}")
|
|
18
18
|
rescue EOFError => e
|
|
19
19
|
handle_bert_error("EOFError: #{e} with data #{slice.inspect}")
|
|
20
20
|
end
|
|
@@ -19,7 +19,7 @@ class TestBerpFailureHandling < Test::Unit::TestCase
|
|
|
19
19
|
s.close
|
|
20
20
|
end
|
|
21
21
|
}
|
|
22
|
-
assert $error.match(/\ATypeError: Invalid magic value for BERT string from client 127\.0\.0\.1:\d+\z/)
|
|
22
|
+
assert $error.match(/\ATypeError: Invalid magic value for BERT string with data "\\xFD" from client 127\.0\.0\.1:\d+\z/)
|
|
23
23
|
end
|
|
24
24
|
|
|
25
25
|
def test_unexpected_eof_in_data_stream
|
metadata
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: em-berp-protocol
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 1.0.
|
|
4
|
+
version: 1.0.2
|
|
5
5
|
prerelease:
|
|
6
6
|
platform: ruby
|
|
7
7
|
authors:
|
|
@@ -92,7 +92,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
|
92
92
|
version: '0'
|
|
93
93
|
segments:
|
|
94
94
|
- 0
|
|
95
|
-
hash:
|
|
95
|
+
hash: -3129646357911580647
|
|
96
96
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
|
97
97
|
none: false
|
|
98
98
|
requirements:
|
|
@@ -101,7 +101,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
|
101
101
|
version: '0'
|
|
102
102
|
segments:
|
|
103
103
|
- 0
|
|
104
|
-
hash:
|
|
104
|
+
hash: -3129646357911580647
|
|
105
105
|
requirements: []
|
|
106
106
|
rubyforge_project:
|
|
107
107
|
rubygems_version: 1.8.24
|