Skip to content

Commit

Permalink
more justification
Browse files Browse the repository at this point in the history
  • Loading branch information
meejah committed Aug 29, 2023
1 parent 3e8493c commit caf0b38
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion txtorcon/torcontrolprotocol.py
Original file line number Diff line number Diff line change
Expand Up @@ -234,7 +234,9 @@ class TorControlProtocol(LineOnlyReceiver):
"""
# override Twisted's LineOnlyReceiver maximum line-length. At
# least "GETINFO md/id/X" for some Xse exceeds 16384 (2**14, the
# default) and thus causes the control connection to fail.
# default) and thus causes the control connection to
# fail. control.c defines MAX_COMMAND_LINE_LENGTH as 1024*1024 so
# we use that
MAX_LENGTH = 2 ** 20

def __init__(self, password_function=None):
Expand Down

0 comments on commit caf0b38

Please sign in to comment.