aboutsummaryrefslogtreecommitdiffstats
path: root/lib/openssl/buffering.rb
Commit message (Collapse)AuthorAgeFilesLines
* Ensure that binary buffer is used at all times.Samuel Williams2020-02-061-4/+27
|
* Prefer `frozen_string_literal: true`.Samuel Williams2020-02-061-5/+5
|
* Reduce memory allocation when writing to SSLSocketjm/buffering-reduce-memory-allocationJanko Marohnić2018-08-081-9/+4
| | | | | | | | | | | | | At the moment OpenSSL::Buffering#do_write allocates some additional strings, and in my profiling writing 5MB of data allocates additional 7.7MB of strings. This patch greatly reduces memory allocations, and now writing 5MB of data allocates only additional 0.2MB of strings. This means that large file uploads would effectively not allocate additional memory anymore. Reference: https://bugs.ruby-lang.org/issues/14426 Reference: https://github.com/ruby/ruby/pull/1924
* openssl/buffering.rb: no RS when outputnobu2018-08-081-5/+3
| | | | | | | | * ext/openssl/lib/openssl/buffering.rb (do_write, puts): output methods should not be affected by the input record separator. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@62038 b2dd03c8-39d4-4d8f-98ff-823fe69b080e Sync-with-trunk: r62038
* buffering: let #write accept multiple argumentsky/ssl-write-multiKazuki Yamaguchi2017-10-231-3/+5
| | | | | | | As of Ruby 2.5, IO#write accepts multiple input strings and writes them at once[1]. Follow that. [1] https://bugs.ruby-lang.org/issues/9323
* Fix RDoc markuptopic/fix-rdoc-markupKazuki Yamaguchi2017-02-241-19/+19
| | | | | Ruby core uses _str_ for emphasizing argument names and +str+ for codes. Match with the rule for better rendering.
* Revert r57690 except for read_nonblocknobu2017-02-241-2/+1
| | | | | | https://github.com/ruby/ruby/pull/1527#issuecomment-281867551 git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@57694 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* [DOC] mark up literalsnobu2017-02-241-4/+4
| | | | git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@57693 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* [DOC] keyword argument _exception_nobu2017-02-241-2/+2
| | | | git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@57692 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* [DOC] {read,write}_nonblock with exception: falsenobu2017-02-241-2/+4
| | | | | | | | | | Update docs to reflect EOF behavior change of read_nonblock and write_nonblock when using `exception: false`. [Fix GH-1527] Author: Russell Davis <russell-stripe@users.noreply.github.com> git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@57690 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* buffering: fix typo in docKazuki Yamaguchi2017-01-231-2/+2
|
* parse.y: ambiguous parenthesesnobu2016-11-301-1/+1
| | | | | | | * parse.y (parser_yylex): warn ambiguous parentheses after a space in method definitions. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@56927 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* openssl: document `exception: false' for *_nonblockEric Wong2016-10-241-0/+8
| | | | | | * lib/openssl/buffering.rb (read_nonblock, write_nonblock): document `exception: false' [ruby-core:73882] [Feature #12085]
* openssl: remove impossible EOFError raise in OpenSSL::Bufferingrhe2016-05-311-2/+0
| | | | | | | | * ext/openssl/lib/openssl/buffering.rb (read_nonblock, readpartial): Remove impossible EOFError raise. Patch by Zach Anker <zanker@squareup.com>. [GH ruby/openssl#23] git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@55097 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* sync code from upstreamSHIBATA Hiroshi2015-12-301-0/+1
|
* Sync with ruby trunkZachary Scott2015-09-231-6/+1
|
* Apply ruby/ruby@325a50fc572516a171d640765d6ddf9b20be14dc to fix typosZachary Scott2015-05-041-1/+1
| | | | See also r50351 from ruby/ruby#876
* import ruby trunkSHIBATA Hiroshi2014-10-271-0/+457