vi / wgserve

Android application to route incoming connections from Wireguard tunnels to device's network
MIT License
9 stars 3 forks source link

Upload/Download bandwith is limited at ~25% from original bandwith #1

Open capmorganbih opened 11 months ago

capmorganbih commented 11 months ago

When used as exit node upload/download speed is limited at 25% from original bandwidth. What is the reason and may we address it somehow?

vi commented 11 months ago

Try to (significantly) increase tcp_buffer_size and transmit_queue_capacity, so that high RTT won't automatically convert to low TCP speed.

E.g. 1048576 buffer size and 5000 queue capacity.

Obviously, memory usage by the application may be affected.