1
0
Fork 0
mirror of https://github.com/ruby/ruby.git synced 2022-11-09 12:17:21 -05:00
ruby--ruby/lib
normal cbedbaf9d9 lib/net/protocol.rb: account read_bytes before caller sees it
Users may modify the chunk yielded to them in Net::HTTPResponse#read_body.
This will allow users to reduce memory usage by calling
String#clear on the buffer once they're done using it.

* lib/net/protocol.rb (read): increment read_bytes earlier
  (read_all): ditto
* test/net/http/test_httpresponse.rb (test_read_body_block_mod): new test

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@58846 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2017-05-22 07:36:00 +00:00
..
cgi cgi/util.rb: Don't escape tilde in #escape 2017-05-17 12:34:59 +00:00
drb Use \A and \z to match whole string 2017-04-07 13:26:12 +00:00
forwardable
irb ruby-lex.rb: fix continued line conditions 2017-04-20 11:07:02 +00:00
matrix
net lib/net/protocol.rb: account read_bytes before caller sees it 2017-05-22 07:36:00 +00:00
optparse
racc
rdoc Update rdoc-5.1.0 2017-02-24 07:39:37 +00:00
rexml
rinda
rss rss: Accept empty text element as valid element 2017-05-03 12:25:17 +00:00
rubygems fix tempfile leaks on Windows 2017-05-16 05:47:53 +00:00
shell Fix two typos 2017-03-29 11:49:39 +00:00
unicode_normalize add explanations about status of module UnicodeNormalize 2017-05-09 10:45:46 +00:00
uri lib/uri/generic.rb: fix typos 2017-05-10 19:03:07 +00:00
webrick Merge gemspec from ruby/webrick. 2017-05-01 10:20:35 +00:00
yaml
abbrev.rb lib/abbrev.rb: Specify frozen_string_literal: true. 2017-02-09 16:12:00 +00:00
base64.rb Use unpack1 instead of unpack and first 2017-02-10 00:58:47 +00:00
benchmark.rb
cgi.rb {lib,test}/cgi: Specify frozen_string_literal: true. 2017-02-18 05:52:16 +00:00
cmath.gemspec Fix a required ruby version on gemspec of gemified libraries. 2017-02-07 07:14:22 +00:00
cmath.rb
csv.gemspec Fix a required ruby version on gemspec of gemified libraries. 2017-02-07 07:14:22 +00:00
csv.rb Remove redundant square brackets 2017-05-21 01:01:10 +00:00
debug.rb
delegate.rb
drb.rb
e2mmap.rb lib/e2mmap.rb: Specify frozen_string_literal: true. 2017-03-01 11:37:30 +00:00
English.rb
erb.rb erb.rb: Skip creating regexp 2017-05-22 03:56:16 +00:00
fileutils.gemspec Merge gemspec from ruby/fileutils. 2017-05-19 23:39:58 +00:00
fileutils.rb docs for FileUtils.ln methods 2017-03-08 20:41:38 +00:00
find.rb lib/find.rb: Specify frozen_string_literal: true. 2017-02-13 12:16:26 +00:00
forwardable.rb
getoptlong.rb
ipaddr.rb
irb.rb Removed math mode from irb. 2017-04-20 09:11:36 +00:00
logger.rb logger: remove redundant opt_str_freeze use 2017-03-24 07:29:33 +00:00
matrix.rb * lib/matrix.rb: Add Vector.zero and Vector#zero? 2017-03-14 20:09:30 +00:00
mkmf.rb mkmf.rb: get rid of error messages 2017-02-27 07:37:55 +00:00
monitor.rb
mutex_m.rb
observer.rb
open-uri.rb
open3.rb
optionparser.rb
optparse.rb nodoc OptParse 2017-03-04 19:52:30 +00:00
ostruct.rb ostruct.rb: improve fix for OpenStruct.allocate + #respond_to? 2017-04-01 10:30:48 +00:00
pp.rb Refactored using Method#owner. 2017-04-04 12:54:42 +00:00
prettyprint.rb
prime.rb prime.rb: remove alias after timeout test 2017-05-20 10:21:44 +00:00
profile.rb
profiler.rb
pstore.rb
rdoc.rb Update rdoc-5.1.0 2017-02-24 07:39:37 +00:00
resolv-replace.rb
resolv.rb
rss.rb
rubygems.rb Merge rubygems-2.6.12 from rubygems/rubygems. 2017-05-01 11:40:46 +00:00
scanf.gemspec Added initial gemspec for Scanf module. 2017-02-14 11:12:52 +00:00
scanf.rb
securerandom.rb securerandom: fix up r57384 2017-02-24 11:33:06 +00:00
set.rb
shell.rb
shellwords.rb
singleton.rb
sync.rb
tempfile.rb tempfile.rb: do not call File.identical? on closed stream 2017-05-19 09:36:34 +00:00
thwait.rb
time.rb
timeout.rb
tmpdir.rb
tracer.rb
tsort.rb
ubygems.rb
un.rb
uri.rb
weakref.rb
webrick.rb
yaml.rb