[ruby-cvs:70082] nagachika:r62988 (ruby_2_4): merge revision(s) 62953:

nagachika at ruby-lang.org nagachika at ruby-lang.org
Wed Mar 28 18:39:53 JST 2018


nagachika	2018-03-28 18:39:53 +0900 (Wed, 28 Mar 2018)

  New Revision: 62988

  https://svn.ruby-lang.org/cgi-bin/viewvc.cgi?view=revision&revision=62988

  Log:
    merge revision(s) 62953:
    
    webrick: favor .write over << method
    
    This will make the next change to use IO.copy_stream
    easier-to-read.  When we can drop Ruby 2.4 support in a few
    years, this will allow us to use writev(2) with multiple
    arguments for headers and chunked responses.
    
    * lib/webrick/cgi.rb (write): new wrapper method
      lib/webrick/httpresponse.rb: (send_header): use socket.write
      (send_body_io): ditto
      (send_body_string): ditto
      (send_body_proc): ditto
      (_write_data): ditto
      (ChunkedWrapper#write): ditto
      (_send_file): ditto

  Modified directories:
    branches/ruby_2_4/
  Modified files:
    branches/ruby_2_4/lib/webrick/cgi.rb
    branches/ruby_2_4/lib/webrick/httpresponse.rb
    branches/ruby_2_4/version.h


More information about the ruby-cvs mailing list