diff options
author | usa <usa@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2016-03-25 09:31:25 +0000 |
---|---|---|
committer | usa <usa@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2016-03-25 09:31:25 +0000 |
commit | fb28e643423b08fb8b0b458cca7799992d8df156 (patch) | |
tree | 600f9bfae730a776af136dda22bc2e209ec4bce2 /lib | |
parent | facd02511b30aa27fd1a33d39b9c28109738652e (diff) |
merge revision(s) 53810: [Backport #12044]
* net/ftp.rb: add NullSocket#closed? to fix closing not opened
connection. [Fix GH-1232]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_2_1@54277 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'lib')
-rw-r--r-- | lib/net/ftp.rb | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/lib/net/ftp.rb b/lib/net/ftp.rb index 5ddccda90c..f337fd5056 100644 --- a/lib/net/ftp.rb +++ b/lib/net/ftp.rb @@ -1070,6 +1070,10 @@ module Net def read_timeout=(sec) end + def closed? + true + end + def close end |