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

missing FTP SetTimeout method #1

Open
GoogleCodeExporter opened this issue Oct 27, 2015 · 1 comment
Open

missing FTP SetTimeout method #1

GoogleCodeExporter opened this issue Oct 27, 2015 · 1 comment

Comments

@GoogleCodeExporter
Copy link

Hello, i missed this method, and added it in my own copy of ftp4go :

// SetTimeout sets the timeout for command and data transfers, in milliseconds.
// (added by [email protected])
func (ftp *FTP) SetTimeout(msecs int64) {
    if msecs >= 0 {
        ftp.timeoutInMsec = msecs
        if ftp.conn != nil {
            ftp.conn.SetDeadline(getTimeoutInMsec(ftp.timeoutInMsec))
        }
    }
}

Having this in the official package seems like a good idea, all the more 
because the default of 1000 ms is really short!

Thanks for your efforts in developing this package, i have a need for it, and 
it seems to work fine :)
Do you plan on adding TLS support any time soon?


Erwin
[email protected]


Original issue reported on code.google.com by [email protected] on 27 Jul 2012 at 6:28

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

No branches or pull requests

1 participant