You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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
The text was updated successfully, but these errors were encountered:
Hi Erwin,
I finally found some time to update the code to the latest version of Go.
In the revision process I decided to comment out the timeout for now (since it
is an absolute date that needs refreshing on every read/write operation).
Support for socks5 proxy has been added, TLS not yet.
Enrico
Original issue reported on code.google.com by
[email protected]
on 27 Jul 2012 at 6:28The text was updated successfully, but these errors were encountered: