diff options
author | nagachika <nagachika@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2016-03-28 16:06:29 +0000 |
---|---|---|
committer | nagachika <nagachika@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2016-03-28 16:06:29 +0000 |
commit | 5840a393fb80342e5b389725ab7a9fddcb2189f7 (patch) | |
tree | e386f8610a6d4d0b06e8fce14d4d59e4cf71af3a /lib | |
parent | a2915284495bea277c852c9e57674c98867bac25 (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_2@54330 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 f513ca6ee8..5b63764625 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 |