Increase buffer size so it's not crazy slow
This commit is contained in:
parent
47768da41b
commit
b7e7e868c9
1 changed files with 1 additions and 1 deletions
|
@ -8,7 +8,7 @@ logger = logging.getLogger(__name__)
|
||||||
|
|
||||||
Route = namedtuple("Route", ["listen_port", "destination_host", "destination_port"])
|
Route = namedtuple("Route", ["listen_port", "destination_host", "destination_port"])
|
||||||
|
|
||||||
BUFFER_SIZE = 4096
|
BUFFER_SIZE = 128 * 1024 # 64kb
|
||||||
|
|
||||||
FORMAT = "%(levelname)s: %(message)s"
|
FORMAT = "%(levelname)s: %(message)s"
|
||||||
logging.basicConfig(format=FORMAT)
|
logging.basicConfig(format=FORMAT)
|
||||||
|
|
Reference in a new issue