Skip to content

netopeer2-server TCP socket not properly closed #625

Description

@yoousra

Hello,

I have encountered the following issue in my test:

The test is in IPV6.
netopeer2-server starts connecting to the client which is not listening yet:

14:56:58.373 netopeer2-server(PID:2165): [INF]: LN: Listening on xxx:830 for SSH connections.
14:56:58.374 netopeer2-server(PID:2165): [INF]: LN: Call Home client "my_client" endpoint "endpt" connecting...
14:56:58.374 netopeer2-server(PID:2165): [INF]: LN: Trying to connect via IPv6 to yyy:4334. 
14:56:58.874 netopeer2-server(PID:2165): [INF]: LN: Timed out after 500 ms (Operation now in progress).

netopeer2-cli starts listening at 14:56:58.957 (listen --timeout 90 --ssh --login x) but after 10s, the listen fails with error SSH connect timeout.

Then after the 60s timer expiry (ietf-netconf-server max-wait), netopeer2-server tries to reconnect:

14:57:58.876 netopeer2-server(PID:2165): [INF]: LN: Call Home client "my_client" timeout of 60 seconds expired, reconnecting.
14:57:58.876 netopeer2-server(PID:2165): [INF]: LN: Trying to connect the pending socket 32.
14:57:58.883 netopeer2-server(PID:2165): [ERR]: LN: SSH key exchange error (Socket error: No such file or directory).

Could it be that at the first connection try by the server, the TCP socket was created but not properly closed, so netopeer2-cli when listening accepted the connection from that socket, except there's no one on the other side, hence the failure after 10s?

Metadata

Metadata

Assignees

No one assigned

    Labels

    is:bugBug description.status:completedFrom the developer perspective, the issue was solved (bug fixed, question answered,...)

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions