From 366356cb7f730084ccb4f49dda63af56087c297c Mon Sep 17 00:00:00 2001 From: matz Date: Wed, 14 Sep 2005 15:21:31 +0000 Subject: * lib/net/telnet.rb (Net::Telnet::waitfor): replace sysread with readpartial. [ruby-talk:127641] git-svn-id: http://svn.ruby-lang.org/repos/ruby/branches/ruby_1_8@9160 b2dd03c8-39d4-4d8f-98ff-823fe69b080e --- lib/net/telnet.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'lib') diff --git a/lib/net/telnet.rb b/lib/net/telnet.rb index 05691de0f..c5f8b0429 100644 --- a/lib/net/telnet.rb +++ b/lib/net/telnet.rb @@ -551,7 +551,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 -- cgit