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

Use default max packet size for SFTP #65

Merged
merged 1 commit into from Sep 25, 2018
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
3 changes: 1 addition & 2 deletions nmon2influxdblib/files.go
Expand Up @@ -32,7 +32,6 @@ var delimiterRegexp = regexp.MustCompile(`^\w+(.)`)
var statsRegexp = regexp.MustCompile(`\W(T\d{4,16})`)

const gzipfile = ".gz"
const size = 64000

// File structure used to select nmon files to import
type File struct {
Expand Down Expand Up @@ -256,7 +255,7 @@ func InitSFTP(sshUser string, host string, key string) *sftp.Client {
log.Fatalf("dial failed:%v", err)
}

c, err := sftp.NewClient(conn, sftp.MaxPacket(size))
c, err := sftp.NewClient(conn)
if err != nil {
log.Fatalf("unable to start sftp subsytem: %v", err)
}
Expand Down