aboutsummaryrefslogtreecommitdiffstats
path: root/lib/net/telnet.rb
diff options
context:
space:
mode:
authormatz <matz@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2005-09-16 03:09:51 +0000
committermatz <matz@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2005-09-16 03:09:51 +0000
commit1b644555aee0692006c3f4efaae16e5e0f9160e9 (patch)
tree857ab2102956ce268a9a63216c11e4bc14a88821 /lib/net/telnet.rb
parent8b02984629490751af2a4cb0a9bc0b48ceaf1bdb (diff)
downloadruby-1b644555aee0692006c3f4efaae16e5e0f9160e9.tar.gz
* ext/syck/rubyext.c (syck_resolver_transfer): remove C++ style
comment (//). [ruby-core:05793] * lib/net/telnet.rb (Net::Telnet::waitfor): replace sysread with readpartial. [ruby-talk:127641] git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@9177 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'lib/net/telnet.rb')
-rw-r--r--lib/net/telnet.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/net/telnet.rb b/lib/net/telnet.rb
index 1ac5f25f09..16459d7c65 100644
--- a/lib/net/telnet.rb
+++ b/lib/net/telnet.rb
@@ -554,7 +554,7 @@ module Net
raise TimeoutError, "timed out while waiting for more data"
end
begin
- c = @sock.sysread(1024 * 1024)
+ c = @sock.readpartial(1024 * 1024)
@dumplog.log_dump('<', c) if @options.has_key?("Dump_log")
if @options["Telnetmode"]
c = rest + c