diff options
author | normal <normal@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2018-03-28 08:06:39 +0000 |
---|---|---|
committer | normal <normal@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2018-03-28 08:06:39 +0000 |
commit | 96ada3800e5524ad052093a5e6f27f6670fa188b (patch) | |
tree | 39719e1b0b961d9364d8e49a01fe5bb1db2b0761 /ruby.c | |
parent | c5de31db8272577c2c18dc1b0a597d13c1aa7e1e (diff) | |
download | ruby-96ada3800e5524ad052093a5e6f27f6670fa188b.tar.gz |
webrick/httprequest: use InputBufferSize for chunked requests
While WEBrick::HTTPRequest#body provides a Proc interface
for streaming large request bodies, clients must not force
the server to use an excessively large chunk size.
* lib/webrick/httprequest.rb (read_chunk_size): limit each
read and block.call to :InputBufferSize in config.
* test/webrick/test_httpserver.rb (test_big_chunks): new test
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@62963 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'ruby.c')
0 files changed, 0 insertions, 0 deletions