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

An existing connection was forcibly closed by the remote host #316

Open
dablelv opened this issue Mar 4, 2023 · 0 comments
Open

An existing connection was forcibly closed by the remote host #316

dablelv opened this issue Mar 4, 2023 · 0 comments
Labels
defect The code does not work as intended

Comments

@dablelv
Copy link

dablelv commented Mar 4, 2023

I create a FTP connection using below codes.

import "github.com/jlaffaye/ftp"

conn, err := ftp.Dial("IP:21", ftp.DialWithTimeout(5*time.Second))

Someting is right and I can use the conn to access FTP server. But after about one minute, I access the FTP server again and got the error msg "An existing connection was forcibly closed by the remote host".

How to solve this problem? Who can help me, thx.

@dablelv dablelv added the defect The code does not work as intended label Mar 4, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
defect The code does not work as intended
Projects
None yet
Development

No branches or pull requests

1 participant