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
..
2017-05-17 12:34:59 +00:00
2017-04-07 13:26:12 +00:00
2016-11-20 02:12:48 +00:00
2017-04-20 11:07:02 +00:00
2016-11-29 16:06:54 +00:00
2017-05-22 07:36:00 +00:00
2016-10-14 13:26:13 +00:00
2016-11-08 19:55:59 +00:00
2017-02-24 07:39:37 +00:00
2016-12-06 13:57:56 +00:00
2017-01-17 03:31:57 +00:00
2017-05-03 12:25:17 +00:00
2017-05-16 05:47:53 +00:00
2017-03-29 11:49:39 +00:00
2017-05-09 10:45:46 +00:00
2017-05-10 19:03:07 +00:00
2017-05-01 10:20:35 +00:00
2016-09-29 14:40:34 +00:00
2017-02-09 16:12:00 +00:00
2017-02-10 00:58:47 +00:00
2017-01-03 02:00:01 +00:00
2017-02-18 05:52:16 +00:00
2017-02-07 07:14:22 +00:00
2017-01-04 05:47:52 +00:00
2017-02-07 07:14:22 +00:00
2017-05-21 01:01:10 +00:00
2017-01-05 01:00:01 +00:00
2017-01-06 02:05:35 +00:00
2017-03-01 11:37:30 +00:00
2017-01-02 12:20:09 +00:00
2017-05-22 03:56:16 +00:00
2017-05-19 23:39:58 +00:00
2017-03-08 20:41:38 +00:00
2017-02-13 12:16:26 +00:00
2017-01-03 09:47:16 +00:00
2017-01-08 04:17:08 +00:00
2016-11-05 13:53:38 +00:00
2017-04-20 09:11:36 +00:00
2017-03-24 07:29:33 +00:00
2017-03-14 20:09:30 +00:00
2017-02-27 07:37:55 +00:00
2016-08-30 06:22:30 +00:00
2016-08-30 06:22:30 +00:00
2017-01-13 12:08:29 +00:00
2016-11-21 23:13:16 +00:00
2016-10-20 07:19:58 +00:00
2017-03-04 19:52:30 +00:00
2017-04-01 10:30:48 +00:00
2017-04-04 12:54:42 +00:00
2017-05-20 10:21:44 +00:00
2017-01-15 02:56:04 +00:00
2017-01-18 12:35:10 +00:00
2017-01-17 12:47:38 +00:00
2017-02-24 07:39:37 +00:00
2017-01-14 02:26:49 +00:00
2017-05-01 11:40:46 +00:00
2017-02-14 11:12:52 +00:00
2017-02-24 11:33:06 +00:00
2016-11-05 09:23:14 +00:00
2016-11-05 23:58:02 +00:00
2016-11-05 04:58:48 +00:00
2016-08-30 06:22:30 +00:00
2016-09-18 10:24:48 +00:00
2017-05-19 09:36:34 +00:00
2016-08-30 06:22:30 +00:00
2016-11-05 14:03:34 +00:00
2016-09-07 12:32:02 +00:00
2016-08-30 06:22:30 +00:00
2017-01-26 15:14:02 +00:00