diff options
| author | matz <matz@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2005-09-14 15:21:31 +0000 |
|---|---|---|
| committer | matz <matz@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2005-09-14 15:21:31 +0000 |
| commit | 366356cb7f730084ccb4f49dda63af56087c297c (patch) | |
| tree | 0ed429fdd3ce5bda8a298774ce0df8f50d171af4 /lib | |
| parent | 31ce26f49046bab6cb57847db778ab517bf1bdc8 (diff) | |
| download | ruby-366356cb7f730084ccb4f49dda63af56087c297c.tar.gz ruby-366356cb7f730084ccb4f49dda63af56087c297c.tar.xz ruby-366356cb7f730084ccb4f49dda63af56087c297c.zip | |
* 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
Diffstat (limited to 'lib')
| -rw-r--r-- | lib/net/telnet.rb | 2 |
1 files changed, 1 insertions, 1 deletions
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 |
