aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--ChangeLog5
-rw-r--r--lib/net/telnet.rb4
2 files changed, 9 insertions, 0 deletions
diff --git a/ChangeLog b/ChangeLog
index bfebe3642b..885bb7efe6 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,8 @@
+Thu Oct 21 15:42:01 2010 NARUSE, Yui <naruse@ruby-lang.org>
+
+ * lib/net/telnet.rb (Net::Telnet#close): added.
+ patched by Erik Hollensbe [ruby-dev:42260] #3830
+
Thu Oct 21 13:08:00 2010 Narihiro Nakamura <authornari@gmail.com>
* gc.c (rb_objspace_each_objects): don't lazy sweep in
diff --git a/lib/net/telnet.rb b/lib/net/telnet.rb
index f233827a59..a8ded93b9d 100644
--- a/lib/net/telnet.rb
+++ b/lib/net/telnet.rb
@@ -754,6 +754,10 @@ module Net
line
end
+ def close
+ @sock.close
+ end
+
end # class Telnet
end # module Net