archive
/
tcp-nat-proxy
Archived
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
1 changed files with 1 additions and 1 deletions

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)