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 --- ChangeLog | 5 +++++ lib/net/telnet.rb | 2 +- 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/ChangeLog b/ChangeLog index cba3fde37..44b252bbd 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,8 @@ +Thu Sep 15 00:18:24 2005 Yukihiro Matsumoto + + * lib/net/telnet.rb (Net::Telnet::waitfor): replace sysread with + readpartial. [ruby-talk:127641] + Wed Sep 14 22:40:26 2005 Nobuyoshi Nakada * dir.c (ruby_glob): glob function not using ruby exception system. 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