mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
* lib/net/telnet.rb (Net::Telnet::waitfor): replace sysread with
readpartial. [ruby-talk:127641] git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8@9160 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
parent
14e256f4b1
commit
8aa4048e5c
2 changed files with 6 additions and 1 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue