kcptun icon indicating copy to clipboard operation
kcptun copied to clipboard

how to speed up download from a web server using kcptune?

Open FRSiL3nT opened this issue 2 years ago • 0 comments

Hi,

I am getting 2.1 MB/s at kcptun same as normal download without kcptun on port 80. but when I use python3 simple http server python3 -m http.server on port 8000, download rate drops to 500 KB/s at kcptun. I am not sure what is going on.

Server(From Aliyun):

OS: Ubuntu 20.04.3 LTS
kcptun :  20210922
web server: apache2

Client

OS: windows 10 Version 21H2  ( Build 19044.1645)
kcptun :  20210922

kcptun configs for python server (port 8000):

in client:

client_windows_amd64.exe -r "<server-ip>:30000" -l ":8000" -mode fast3 -nocomp -autoexpire 900 -sockbuf 16777217 -dscp 46

in server

./server_linux_amd64 -t "127.0.0.1:8000" -l ":30000" -mode fast3 -nocomp -sockbuf 16777217 -dscp 46

kcptun configs for apache2 web server (port 80):

in client:

client_windows_amd64.exe -r "<server-ip>:30000" -l ":80" -mode fast3 -nocomp -autoexpire 900 -sockbuf 16777217 -dscp 46

in server

./server_linux_amd64 -t "127.0.0.1:80" -l ":30000" -mode fast3 -nocomp -sockbuf 16777217 -dscp 46

Any help would be appreciated.

FRSiL3nT avatar May 07 '22 11:05 FRSiL3nT