1
0
Fork 0
mirror of https://github.com/ruby/ruby.git synced 2022-11-09 12:17:21 -05:00
ruby--ruby/test/net
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
..
fixtures
ftp skip openssl related tests. 2017-05-16 04:23:10 +00:00
http lib/net/protocol.rb: account read_bytes before caller sees it 2017-05-22 07:36:00 +00:00
imap net/imap: separate @continuation_request_exception from @exception 2017-05-22 06:13:11 +00:00
pop
protocol
smtp skip openssl related tests. 2017-05-16 04:23:10 +00:00