Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

多连接乱序 #932

Open
ewall-cauc opened this issue Nov 20, 2023 · 2 comments
Open

多连接乱序 #932

ewall-cauc opened this issue Nov 20, 2023 · 2 comments

Comments

@ewall-cauc
Copy link

  1. 客户端与服务器参数一致

  2. 网络拓扑:
    kcptun客户端(监听:8387-tcp, 发送至本地8388-udp)->kcptun服务端(监听本地udp:8388, 下游本地:8389-tcp)

    客户端:
    i = 0
    while true:
    ....
    c.connect 本地8387
    c.send(i)
    c.close()
    i += 1
    break if i == 10
    服务端:
    s.bind(("0.0.0.0", 8389))
    while True:
    c, addr = s.accept()
    print c.recv(1024)
    c.close()

服务端打印 0 3 4 1 ... 9 8, 乱序

@ddzx
Copy link

ddzx commented Nov 20, 2023 via email

@ewall-cauc
Copy link
Author

利用kcptun实现tcp转udp的功能

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants