aboutsummaryrefslogtreecommitdiffstats
path: root/sample/fib.py
diff options
context:
space:
mode:
authornormal <normal@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2018-03-28 08:06:39 +0000
committernormal <normal@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2018-03-28 08:06:39 +0000
commit2d41d88c4d213f56cd8cefe368699cee896129f1 (patch)
tree39719e1b0b961d9364d8e49a01fe5bb1db2b0761 /sample/fib.py
parent6db6eb572b512998ccfde31610fe18f522d9ba86 (diff)
downloadruby-2d41d88c4d213f56cd8cefe368699cee896129f1.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 'sample/fib.py')
0 files changed, 0 insertions, 0 deletions