summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorwakou <wakou@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2001-09-07 22:17:13 +0000
committerwakou <wakou@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2001-09-07 22:17:13 +0000
commitf7e5a801507490cd7d215f2c2c896ed0e1942870 (patch)
tree7176b18d67201fd556a3eb70100bfb0873131986
parentc93ef15efd96a7d34cbfc094ec1ddc485d7d0ae4 (diff)
downloadruby-f7e5a801507490cd7d215f2c2c896ed0e1942870.tar.gz
ruby-f7e5a801507490cd7d215f2c2c896ed0e1942870.tar.xz
ruby-f7e5a801507490cd7d215f2c2c896ed0e1942870.zip
* lib/net/telnet.rb: waitfor(): improvement. thanks to
nobu.nakada@nifty.ne.jp git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@1744 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
-rw-r--r--ChangeLog5
-rw-r--r--lib/net/telnet.rb2
2 files changed, 6 insertions, 1 deletions
diff --git a/ChangeLog b/ChangeLog
index 45c746967..8adb8910d 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,8 @@
+Sat Sep 8 07:13:42 2001 Wakou Aoyama <wakou@fsinet.or.jp>
+
+ * lib/net/telnet.rb: waitfor(): improvement. thanks to
+ nobu.nakada@nifty.ne.jp
+
Fri Sep 7 09:44:44 2001 Wakou Aoyama <wakou@fsinet.or.jp>
* lib/net/telnet.rb: waitfor(): bug fix.
diff --git a/lib/net/telnet.rb b/lib/net/telnet.rb
index 0a520eaab..91c4faedb 100644
--- a/lib/net/telnet.rb
+++ b/lib/net/telnet.rb
@@ -467,8 +467,8 @@ module Net
begin
c = @sock.sysread(1024 * 1024)
@dumplog.log_dump('<', c) if @options.has_key?("Dump_log")
- c = rest + c
if @options["Telnetmode"]
+ c = rest + c
if Integer(c.rindex(/#{IAC}#{SE}/no)) <
Integer(c.rindex(/#{IAC}#{SB}/no))
buf = preprocess(c[0 ... c.rindex(/#{IAC}#{SB}/no)])