ftw 0.0.15 → 0.0.16

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.
@@ -249,16 +249,20 @@ class FTW::Connection
249
249
 
250
250
  # End this connection, specifying why.
251
251
  def disconnect(reason)
252
- begin
253
- @socket.close_read
254
- rescue IOError => e
255
- # Ignore, perhaps we shouldn't ignore.
256
- end
252
+ if @socket.is_a?(OpenSSL::SSL::SSLSocket)
253
+ @socket.sysclose()
254
+ else
255
+ begin
256
+ @socket.close_read
257
+ rescue IOError => e
258
+ # Ignore, perhaps we shouldn't ignore.
259
+ end
257
260
 
258
- begin
259
- @socket.close_write
260
- rescue IOError => e
261
- # Ignore, perhaps we shouldn't ignore.
261
+ begin
262
+ @socket.close_write
263
+ rescue IOError => e
264
+ # Ignore, perhaps we shouldn't ignore.
265
+ end
262
266
  end
263
267
  end # def disconnect
264
268
 
data/lib/ftw/version.rb CHANGED
@@ -3,5 +3,5 @@ require "ftw/namespace"
3
3
  # :nodoc:
4
4
  module FTW
5
5
  # The version of this library
6
- VERSION = "0.0.15"
6
+ VERSION = "0.0.16"
7
7
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: ftw
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.15
4
+ version: 0.0.16
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors: