summaryrefslogtreecommitdiffstats
path: root/lib/net
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
commit63cfc6ddb759c4c614f9fccaca11a47b8f091b70 (patch)
tree857ab2102956ce268a9a63216c11e4bc14a88821 /lib/net
parent3479ec2eed71bfad489b50e247e4190e0db691fc (diff)
downloadruby-63cfc6ddb759c4c614f9fccaca11a47b8f091b70.tar.gz
ruby-63cfc6ddb759c4c614f9fccaca11a47b8f091b70.tar.xz
ruby-63cfc6ddb759c4c614f9fccaca11a47b8f091b70.zip
* 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: http://svn.ruby-lang.org/repos/ruby/trunk@9177 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'lib/net')
-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 1ac5f25f0..16459d7c6 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