help please: use of closed network connection
jeyrce opened this issue · 3 comments
jeyrce commented
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 commented
@jeyrce what is your FTP client? It looks like it instantly disconnects after opening the connection.
jeyrce commented
@fclairamb Just golang client code, but seems make no effect for logic, only error log
ilog2000 commented
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"
}
}
]
}