Skip to content

Commit

Permalink
Update buffer size default to 16KiB.
Browse files Browse the repository at this point in the history
  • Loading branch information
vsajip committed Oct 11, 2023
1 parent 7cfc35d commit bd69b80
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions docs/index.rst
Original file line number Diff line number Diff line change
Expand Up @@ -223,6 +223,7 @@ instantiation, like this::

From version 0.5.2 onwards, you can also control the buffer size for the I/O between
``gpg`` and ``python-gnupg`` by setting the ``buffer_size`` attribute on a GPG instance.
It defaults to 16K.

.. versionadded:: 0.5.2
The ``buffer_size`` attribute was added.
Expand Down
2 changes: 1 addition & 1 deletion gnupg.py
Original file line number Diff line number Diff line change
Expand Up @@ -1013,7 +1013,7 @@ class GPG(object):

decode_errors = 'strict'

buffer_size = 1024 # override in instance if needed
buffer_size = 16384 # override in instance if needed

result_map = {
'crypt': Crypt,
Expand Down

0 comments on commit bd69b80

Please sign in to comment.