From bd69b80061fda77516b57bc1109405aa217e1342 Mon Sep 17 00:00:00 2001 From: Vinay Sajip Date: Wed, 11 Oct 2023 20:05:47 +0100 Subject: [PATCH] Update buffer size default to 16KiB. --- docs/index.rst | 1 + gnupg.py | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/docs/index.rst b/docs/index.rst index 50b08bf..d608520 100755 --- a/docs/index.rst +++ b/docs/index.rst @@ -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. diff --git a/gnupg.py b/gnupg.py index b04e204..cd184a2 100644 --- a/gnupg.py +++ b/gnupg.py @@ -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,