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

help please: use of closed network connection #710

Open
jeyrce opened this issue Jun 23, 2022 · 3 comments
Open

help please: use of closed network connection #710

jeyrce opened this issue Jun 23, 2022 · 3 comments

Comments

@jeyrce
Copy link

jeyrce commented Jun 23, 2022

Version: 0.11.0

Description:

the server received a client connection, but not worked

Error logs:

level=debug ts=2022-06-23T03:38:35.50506839Z caller=server.go:295 component=server clientId=1 clientIp=10.20.15.103:37264 event="Client connected"
level=info ts=2022-06-23T03:38:35.50521604Z caller=server.go:90 component=driver clientId=1 remoteAddr=10.20.15.103:37264 nbClients=1 event="Client connected"
level=error ts=2022-06-23T03:38:35.50597612Z caller=client_handler.go:363 component=server clientId=1 err="set tcp 10.20.15.104:2121: use of closed network connection" event="Network error"
level=error ts=2022-06-23T03:38:35.50706325Z caller=client_handler.go:416 component=server clientId=1 err="read tcp 10.20.15.104:2121->10.20.15.103:37264: use of closed network connection" event="Network error"
level=info ts=2022-06-23T03:38:35.5070922Z caller=server.go:111 component=driver clientId=1 remoteAddr=10.20.15.103:37264 nbClients=0 event="Client disconnected"
level=debug ts=2022-06-23T03:38:35.50711167Z caller=server.go:300 component=server clientId=1 clientIp=10.20.15.103:37264 event="Client disconnected"
level=debug ts=2022-06-23T03:38:35.50712945Z caller=client_handler.go:312 component=server clientId=1 err="close tcp 10.20.15.104:2121->10.20.15.103:37264: use of closed network connection" event="Problem closing control connection"
@fclairamb
Copy link
Owner

@jeyrce what is your FTP client? It looks like it instantly disconnects after opening the connection.

@jeyrce
Copy link
Author

jeyrce commented Aug 4, 2022

@fclairamb Just golang client code, but seems make no effect for logic, only error log

@ilog2000
Copy link

ilog2000 commented Mar 3, 2024

I have the same issue. Windows 10. The client - Far manager's NetBox (go farmanager.com, download, install, press Alt-F1, select NetBox, press Shift-F4 to create a session, select FTP with no encryption, add 192.168.x.x 2121, set plaintext username/password, try to connect).

Console logs:

level=debug component=server clientId=5 clientIp=192.168.2.102:50579 event="Client connected"
level=info component=driver clientId=5 remoteAddr=192.168.2.102:50579 nbClients=1 event="Client connected"
level=error component=server clientId=5 err="set tcp 192.168.2.152:2121: use of closed network connection" event="Network error"
level=error component=server clientId=5 err="read tcp 192.168.2.152:2121->192.168.2.102:50579: use of closed network connection" event="Network error"
level=info component=driver clientId=5 remoteAddr=192.168.2.102:50579 nbClients=0 event="Client disconnected"
level=debug component=server clientId=5 clientIp=192.168.2.102:50579 event="Client disconnected"
level=debug component=server clientId=5 err="close tcp 192.168.2.152:2121->192.168.2.102:50579: use of closed network connection" event="Problem closing control connection"

The client constantly tries to connect, being disconnected, re-requests the password to try again.

Config is simple

{
  "version": 1,
  "passive_transfer_port_range": {
    "start": 2122,
    "end": 2130
  },
  "accesses": [
    {
      "user": "user",
      "pass": "pass",
      "fs": "os",
      "params": {
        "basePath": "C:\\temp"
      }
    }
  ]
}

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

3 participants