net-ssh 4.0.0.beta2 → 4.0.0.beta3

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: d22fb7b0fc6aadf02461ac28cfb52e67f7eeb289
4
- data.tar.gz: 502436b98a673a775cbc9728b29ca9d462982813
3
+ metadata.gz: 146419fe3e2b0cf850b18f87d8697a309a169370
4
+ data.tar.gz: c578d63fd847d87466e31bda279b188efe89cb58
5
5
  SHA512:
6
- metadata.gz: 0044867033880c2aa00ce745ab9021138c0266106a23c1edfc3c9163208fc687b5a1ccabe4620495a1d85f7f94bad62d3f237e32ef3af644d65408a621d417f6
7
- data.tar.gz: 4f5701087ee35d6567517fb773582b19c241b3ef7467729adb3adeb9906ffcbd2b54ef2a5224b143694ab3fdf3777d5ddae978e48f187d1abd6020dd34296146
6
+ metadata.gz: 99e33fcbc5bdd89c5f0068e6610798b87d7b78b87e6c18a969d2e894ccfea1a89d01847e3a2bed1006db21a3032e847df416ca854988d2ef004b4feb60a99186
7
+ data.tar.gz: 551f47778fa0921ad2cffbee6cfdc0c08df7fde716f83cf95f4330892a16c851fa22be10197a3d3bf6ab87ebc20d9642f9fd54b77a31353e8662717702d302a6
checksums.yaml.gz.sig CHANGED
Binary file
data.tar.gz.sig CHANGED
Binary file
data/CHANGES.txt CHANGED
@@ -1,3 +1,7 @@
1
+ === 4.0.0.beta3
2
+
3
+ * Fix Net::SSH::Disconnect exceptions when channels are closed cleanly [Miklos Fazekas, #421, #422]
4
+
1
5
  === 4.0.0.beta2
2
6
 
3
7
  * Fix raiseUnlessLoaded undefined ERROR issue [Miklos Fazekas, #418]
@@ -120,7 +120,11 @@ module Net; module SSH; module Connection
120
120
  def close
121
121
  info { "closing remaining channels (#{channels.length} open)" }
122
122
  channels.each { |id, channel| channel.close }
123
- loop(0.1) { channels.any? }
123
+ begin
124
+ loop(0.1) { channels.any? }
125
+ rescue Net::SSH::Disconnect
126
+ raise unless channels.empty?
127
+ end
124
128
  transport.close
125
129
  end
126
130
 
@@ -86,7 +86,12 @@ module Net; module SSH; module Transport
86
86
  when :nonblock then
87
87
  if available_for_read?
88
88
  if fill <= 0
89
- raise Net::SSH::Disconnect, "connection closed by remote host"
89
+ result = poll_next_packet
90
+ if result.nil?
91
+ raise Net::SSH::Disconnect, "connection closed by remote host"
92
+ else
93
+ return result
94
+ end
90
95
  end
91
96
  end
92
97
  poll_next_packet
@@ -55,7 +55,7 @@ module Net; module SSH
55
55
 
56
56
  # The prerelease component of this version of the Net::SSH library
57
57
  # nil allowed
58
- PRE = "beta2"
58
+ PRE = "beta3"
59
59
 
60
60
  # The current version of the Net::SSH library as a Version instance
61
61
  CURRENT = new(*[MAJOR, MINOR, TINY, PRE].compact)
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: net-ssh
3
3
  version: !ruby/object:Gem::Version
4
- version: 4.0.0.beta2
4
+ version: 4.0.0.beta3
5
5
  platform: ruby
6
6
  authors:
7
7
  - Jamis Buck
@@ -31,7 +31,7 @@ cert_chain:
31
31
  s/ZUKye79ELwFYKJOhjW5g725OL3hy+llhEleytwKRwgXFQBPTC4f5UkdxZVVWGH
32
32
  e2C9M1m/2odPZo8h
33
33
  -----END CERTIFICATE-----
34
- date: 2016-08-08 00:00:00.000000000 Z
34
+ date: 2016-08-14 00:00:00.000000000 Z
35
35
  dependencies:
36
36
  - !ruby/object:Gem::Dependency
37
37
  name: rbnacl-libsodium
metadata.gz.sig CHANGED
Binary file