relp 0.2.0 → 0.2.1

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.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 1eedad03bc936d4d6853527e61ad522606daa54c
4
- data.tar.gz: fe0c593c39cf33c06e0b19e60477dc40805c8d82
3
+ metadata.gz: b94852227fd0ef388d36bac8d21bfb4fe4daeb28
4
+ data.tar.gz: aec616591b915d81a462724e7007372db897e90d
5
5
  SHA512:
6
- metadata.gz: 01e1d1bba7a58febbab70bbc55a2f824199dc24eafc584506cf7c6121ccedf1cc82f44d12cd0d27c55731c58b593dd80c099e1dac7eb6869fdf7a66a2e83c869
7
- data.tar.gz: fef50599502268f20e910d7cf5f135a5b6373688298e11fe69f4eda63e9a4c9b319b2a5c900b3b8c23d30315242c8ccda21d232c9b9962fb5fe07da4e9573eda
6
+ metadata.gz: db9f3fa99c58eae67f3e0ae18f41feb5d4b8a64cfd9f8e1533d4a0ea6b4ed8f43770c430589e478922a0911bb4d1e125be0f0dabb32c30273898a97600a74a37
7
+ data.tar.gz: 927b67ef920ef770173904497ce81829fb7b5adefbba62952000b255aab31e94491793eceb132bf659589677ce61761b3098c6c39cc19fe4fbe2fb2e470cb794
@@ -5,14 +5,19 @@ All notable changes to this project will be documented in this file.
5
5
  The format is based on [Keep a Changelog](http://keepachangelog.com/en/1.0.0/)
6
6
  and this project adheres to [Semantic Versioning](http://semver.org/spec/v2.0.0.html).
7
7
 
8
- ## [0.2.0] - 2017-09-11
9
- ### Changed
10
- - Server side - new arguments sequence `(port, callback, host = '0.0.0.0' , tls_context = nil, logger = nil)`
11
- - Improved RELP frame checking
12
8
  ## [Unreleased]
9
+
10
+ ## [0.2.1] - 2017-10-27
11
+ ### Removed
12
+ - Temporarily reverted length checking of RELP frames as it caused connection to break under high loads.
13
+
14
+ ## [0.2.0] - 2017-09-11
13
15
  ### Added
14
16
  - Changelog
15
17
  - This repo transferred to ViaQ organization
18
+ ### Changed
19
+ - Server side - new arguments sequence `(port, callback, host = '0.0.0.0' , tls_context = nil, logger = nil)`
20
+ - Improved RELP frame checking
16
21
 
17
22
  ## [0.1.1] - 2017-06-23
18
23
  ### Changed
@@ -5,6 +5,8 @@ require "openssl"
5
5
  module Relp
6
6
  class RelpProtocol
7
7
  @@relp_version = '0'
8
+ # TODO: check whether this exact line is needed or if we can put in something
9
+ # custom to help debugging
8
10
  @@relp_software = 'librelp,1.2.13,http://librelp.adiscon.com'
9
11
 
10
12
  def create_frame(txnr, command, message)
@@ -34,7 +36,7 @@ module Relp
34
36
  frame = Hash.new
35
37
  if match = socket_content.match(/(^[0-9]+) ([\S]*) (\d+)([\s\S]*)/)
36
38
  frame[:txnr], frame[:command], frame[:data_length], frame[:message] = match.captures
37
- check_message_length(frame)
39
+ # check_message_length(frame) - currently unstable, needs some more work
38
40
  frame[:message].lstrip! #message could be empty
39
41
  else
40
42
  raise Relp::FrameReadException.new('Problem with reading RELP frame')
@@ -66,6 +68,10 @@ module Relp
66
68
  informations = Hash[message.scan(/^(.*)=(.*)$/).map { |(key, value)| [key.to_sym, value] }]
67
69
  end
68
70
 
71
+ # IN PROGRESS!
72
+ # TODO: find how exactly relp behaves under high load (batch processing
73
+ # and adjust this function accordingly, probably more elaborate logic and
74
+ # some dynamic offset corrections will be needed
69
75
  def check_message_length(frame)
70
76
  if frame[:command] == "close"
71
77
  real_length = frame[:message].length
@@ -1,3 +1,3 @@
1
1
  module Relp
2
- VERSION = "0.2.0"
2
+ VERSION = "0.2.1"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: relp
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.2.0
4
+ version: 0.2.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Jiří Vymazal
@@ -9,7 +9,7 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2017-10-17 00:00:00.000000000 Z
12
+ date: 2017-10-27 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: bundler
@@ -97,7 +97,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
97
97
  version: '0'
98
98
  requirements: []
99
99
  rubyforge_project:
100
- rubygems_version: 2.5.2
100
+ rubygems_version: 2.5.2.1
101
101
  signing_key:
102
102
  specification_version: 4
103
103
  summary: Ruby implementation of RELP (Reliable Event Logging Protocol) protocol.