1
0
Fork 0
mirror of https://github.com/ruby/ruby.git synced 2022-11-09 12:17:21 -05:00
ruby--ruby/test
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
..
-ext- fix RSTRUCT_LEN macro in public C API 2017-04-15 00:46:00 +00:00
base64 lib/base64.rb: Specify frozen_string_literal: true. 2017-02-10 00:58:45 +00:00
benchmark
bigdecimal Removed mathn.rb from stdlib. It's deprecated from Ruby 2.2. 2017-04-21 06:16:11 +00:00
cgi Fix strange indentation 2017-05-18 15:13:30 +00:00
coverage suppress_warning 2017-04-25 19:13:26 +00:00
csv Strip punctuation from CSV headers in symbol converter. 2017-05-16 09:32:32 +00:00
date {ext,test}/date: Specify frozen_string_literal: true. 2017-01-27 00:29:21 +00:00
dbm {ext,test}/dbm: Specify frozen_string_literal: true. 2017-01-28 04:36:08 +00:00
digest
drb use dedicated assertions 2017-04-07 13:26:12 +00:00
dtrace
erb erb.rb: Allow trimming CR in all trim_modes 2017-05-20 17:36:09 +00:00
etc {ext,test}/etc: Specify frozen_string_literal: true. 2017-01-29 01:35:23 +00:00
excludes
fiddle test/fiddle/helper: remove special case for x86_64-linux 2017-01-11 23:46:05 +00:00
fileutils Should call ln_s only when symlink is available 2017-05-15 07:35:26 +00:00
gdbm Import gemspec and test file changes from ruby/gdbm. 2017-04-25 07:55:56 +00:00
io
irb ruby-lex.rb: fix continued line conditions 2017-04-20 11:07:02 +00:00
json Use assert_raise instead of assert_raises. 2017-04-12 00:21:20 +00:00
lib test/unit.rb: fix returning job tokens 2017-05-16 15:17:39 +00:00
logger
matrix * lib/matrix.rb: Add Vector.zero and Vector#zero? 2017-03-14 20:09:30 +00:00
minitest test_minitest_unit.rb: assert_triggered 2017-03-29 09:47:40 +00:00
misc
mkmf test_framework.rb: for case-sensitive filesystem 2017-04-21 06:12:27 +00:00
monitor
net lib/net/protocol.rb: account read_bytes before caller sees it 2017-05-22 07:36:00 +00:00
nkf
objspace Add IMEMO type to heap dump output. 2017-01-31 17:46:51 +00:00
open-uri revert r57323 2017-01-14 09:38:56 +00:00
openssl openssl: avoid segfault during running tests on Ubuntu trusty 2017-03-01 10:15:55 +00:00
optparse
ostruct ostruct.rb: refine visibility failure message 2017-03-28 09:21:58 +00:00
pathname
psych Import psych-3.0.0.beta1 from ruby/psych. 2017-04-05 13:16:32 +00:00
rdoc Update rdoc-5.1.0 2017-02-24 07:39:37 +00:00
readline
resolv Made #decode_rdata client to catch errors 2017-01-14 02:26:48 +00:00
rexml
rinda Stop a global server of Rinda test 2017-03-14 15:14:21 +00:00
ripper ripper/lexer.rb: nested indented heredoc 2017-05-06 15:14:58 +00:00
rss rss: Accept empty text element as valid element 2017-05-03 12:25:17 +00:00
ruby string.c: fix String#{casecmp,casecmp?} for non-string arguments 2017-05-21 19:28:48 +00:00
rubygems add information for debugging. 2017-05-15 07:02:33 +00:00
scanf
sdbm
shell
socket test/socket/test_basicsocket.rb (socks): bind explicitly to localhost 2017-05-15 07:33:10 +00:00
stringio stringio.c: check range 2017-03-21 03:15:57 +00:00
strscan {ext,test}/strscan: Specify frozen_string_literal: true. 2017-02-06 13:23:39 +00:00
syslog
testunit test_parallel.rb: match the count 2017-02-07 08:09:23 +00:00
thread test/thread: relax internal implementation check in error message 2017-05-09 19:52:10 +00:00
uri uri/generic.rb: fix exception on non-IP format 2017-01-17 12:54:35 +00:00
webrick Import gemspec 2017-04-25 09:23:04 +00:00
win32ole
yaml lib/pstore.rb: Specify frozen_string_literal: true. 2017-01-17 12:47:38 +00:00
zlib zlib.c: no buf_filled in zstream 2017-05-01 02:01:38 +00:00
colors
runner.rb
test_abbrev.rb lib/abbrev.rb: Specify frozen_string_literal: true. 2017-02-09 16:12:00 +00:00
test_cmath.rb
test_delegate.rb
test_extlibs.rb Revert "test/test_extilibs.rb: do not check the existence of fiddle" 2017-05-16 23:59:01 +00:00
test_find.rb lib/find.rb: Specify frozen_string_literal: true. 2017-02-13 12:16:26 +00:00
test_forwardable.rb
test_ipaddr.rb
test_mutex_m.rb
test_observer.rb lib/observer.rb: Specify frozen_string_literal: true. 2017-01-13 12:08:29 +00:00
test_open3.rb
test_pp.rb
test_prettyprint.rb
test_prime.rb prime.rb: remove alias after timeout test 2017-05-20 10:21:44 +00:00
test_pstore.rb lib/pstore.rb: Specify frozen_string_literal: true. 2017-01-17 12:47:38 +00:00
test_pty.rb
test_rbconfig.rb
test_securerandom.rb
test_set.rb
test_shellwords.rb
test_singleton.rb
test_syslog.rb
test_tempfile.rb Of course, opened file is not able to unlink on Windows 2017-05-19 12:44:46 +00:00
test_time.rb
test_timeout.rb
test_tmpdir.rb test/test_tmpdir.rb: Specify frozen_string_literal: true. 2017-01-23 15:47:32 +00:00
test_tracer.rb
test_tsort.rb
test_unicode_normalize.rb
test_weakref.rb lib/weakref.rb: Specify frozen_string_literal: true. 2017-01-26 15:14:00 +00:00
test_win32api.rb