Skip to content

[ERROR] [client] Server failed to allocate tunnel: The tunnel tcp://ngrok.xxx:888 is already registered. #12

Description

@Eric8069

你好,请问下 这个代码还在维护吗? 我用这个做内网穿透时发现一个问题:
1.服务端启动后,客户端能正常链接,
2.如果客户端挂掉以后,服务端的监听不释放,然后客户端一直循环建立链接,然后报错 [ERROR] [client] Server failed to allocate tunnel: The tunnel tcp://ngrok.xxx:888 is already registered.
3. 服务端则一致 建立一个新的隧道,然后再Remove Tunnel
麻烦有时间帮忙看吧。
我趴了下代码,发现你设置了setsockopt(socket.SOL_SOCKET, socket.SO_REUSEADDR, 1),为什么程序断开后服务器监听的隧道端口不释放呢?

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions