1
Fork 0

Increase buffer size so it's not crazy slow

This commit is contained in:
Jake Howard 2019-01-01 21:29:44 +00:00
parent 47768da41b
commit b7e7e868c9
Signed by: jake
GPG key ID: 57AFB45680EDD477

View file

@ -8,7 +8,7 @@ logger = logging.getLogger(__name__)
Route = namedtuple("Route", ["listen_port", "destination_host", "destination_port"])
BUFFER_SIZE = 4096
BUFFER_SIZE = 128 * 1024 # 64kb
FORMAT = "%(levelname)s: %(message)s"
logging.basicConfig(format=FORMAT)