diff options
-rw-r--r-- | ChangeLog | 5 | ||||
-rw-r--r-- | ext/openssl/lib/openssl/buffering.rb | 2 |
2 files changed, 6 insertions, 1 deletions
@@ -1,3 +1,8 @@ +Mon Sep 5 07:01:12 2005 GOTOU Yuuzou <gotoyuzo@notwork.org> + + * ext/openssl/openssl/lib/openssl/buffering.rb (Buffering#do_write): + should clear data from the buffer which already been output. + Fri Sep 2 23:51:54 2005 Nobuyoshi Nakada <nobu@ruby-lang.org> * lib: do not use __send__ to access private methods. [ruby-dev:26935] diff --git a/ext/openssl/lib/openssl/buffering.rb b/ext/openssl/lib/openssl/buffering.rb index bd11afe043..761a017487 100644 --- a/ext/openssl/lib/openssl/buffering.rb +++ b/ext/openssl/lib/openssl/buffering.rb @@ -182,7 +182,7 @@ module Buffering remain -= nwrote nwritten += nwrote end - @wbuffer = "" + @wbuffer[0,nwritten] = "" end end |