forwardmachine 1.0.2 → 1.0.3

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: acd6b9cc4ea64857052db7b1e7999a543a2c8904
4
- data.tar.gz: 21be0b9d106aa9c7046a41ffe5fa326970569f1d
3
+ metadata.gz: 4c5455a990fd71ccf4c7784a3d04e8d4cdd8b4be
4
+ data.tar.gz: efef5174b975486486c2ec7d6a3dc3eecbfc8323
5
5
  SHA512:
6
- metadata.gz: 8b0a628e1700dab3423de68cdba7e5039c153b29db32b5ce092d3545f52784e3fd10265dfcdee074c7fa7435774dcc01a5431259653b27c973c49ad05a79c257
7
- data.tar.gz: cdb808666b6886158dfb726080a601b1c59444524b33cb7a516b721a6f48b9606c25ddbf2f2df81bf72f59ead47206157d96741821ac3a9fc6ddb28471ec4074
6
+ metadata.gz: 6fd6fa376dfb731194449a259fb3d19b6d6fec3b8a690bc8826d57abed830a3d41a24191441b99ba43947c25d9d56ce8c45d085da91f70e7b0cf6ff9e63a5387
7
+ data.tar.gz: 3db672707a60500e883b9d00332c1cda3a3394c34879132726839018284b777c6d082c5f0872bf51b35f8fe11f5230a747f1757c75c3e6d8360630993428714f
@@ -58,6 +58,7 @@ module ForwardMachine
58
58
 
59
59
  def stop
60
60
  logger.info("Stopped forwarder #{self}")
61
+ logger.close
61
62
  @inactivity_timer.cancel
62
63
  EM.stop_server(@server)
63
64
  ports_pool.release(port)
@@ -21,6 +21,7 @@ module ForwardMachine
21
21
  ForwardedConnection, self)
22
22
  rescue RuntimeError => e
23
23
  logger.error("Client #{peer} on #{@forwarder} couldn't be connected with destination")
24
+ logger.close
24
25
  close_connection
25
26
  end
26
27
 
@@ -35,6 +36,7 @@ module ForwardMachine
35
36
  # notify forwarder server about it.
36
37
  def unbind
37
38
  logger.info("Client #{peer} disconnected from forwarder #{@forwarder}")
39
+ logger.close
38
40
  @forwarder.forwarder_connection_closed
39
41
  end
40
42
 
@@ -1,3 +1,3 @@
1
1
  module ForwardMachine
2
- VERSION = "1.0.2"
2
+ VERSION = "1.0.3"
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: forwardmachine
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.0.2
4
+ version: 1.0.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - Mariusz Pietrzyk
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2014-04-21 00:00:00.000000000 Z
11
+ date: 2015-06-16 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: eventmachine
@@ -101,7 +101,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
101
101
  version: '0'
102
102
  requirements: []
103
103
  rubyforge_project:
104
- rubygems_version: 2.2.0
104
+ rubygems_version: 2.4.3
105
105
  signing_key:
106
106
  specification_version: 4
107
107
  summary: Port forwarding service configurable in runtime
@@ -110,4 +110,3 @@ test_files:
110
110
  - spec/forwardmachine/ports_pool_spec.rb
111
111
  - spec/integration_spec.rb
112
112
  - spec/spec_helper.rb
113
- has_rdoc: