[ruby-cvs:70076] normal:r62961 (trunk): webrick/httpservlet/cgihandler: reduce memory use

normal at ruby-lang.org normal at ruby-lang.org
Wed Mar 28 17:06:29 JST 2018

normal	2018-03-28 17:06:28 +0900 (Wed, 28 Mar 2018)

  New Revision: 62961


    webrick/httpservlet/cgihandler: reduce memory use
    WEBrick::HTTPRequest#body can be passed a block to process the
    body in chunks.  Use this feature to avoid building a giant
    string in memory.
    * lib/webrick/httpservlet/cgihandler.rb (do_GET):
      avoid reading entire request body into memory
      (do_POST is aliased to do_GET, so it handles bodies)

  Modified files:

More information about the ruby-cvs mailing list