Skip to content

Commit

Permalink
aws/credentials/processcreds: Increase the default max buffer size (#…
Browse files Browse the repository at this point in the history
  • Loading branch information
skmcgrail authored Nov 25, 2019
1 parent 4884dc6 commit 646ede7
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
2 changes: 2 additions & 0 deletions CHANGELOG_PENDING.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
### SDK Features

### SDK Enhancements
* `aws/credentials/processcreds`: Increase the default max buffer size ([#2957](https://github.com/aws/aws-sdk-go/pull/2957))
* Fixes [#2875](https://github.com/aws/aws-sdk-go/issues/2875)

### SDK Bugs
3 changes: 2 additions & 1 deletion aws/credentials/processcreds/provider.go
Original file line number Diff line number Diff line change
Expand Up @@ -90,6 +90,7 @@ import (

"github.com/aws/aws-sdk-go/aws/awserr"
"github.com/aws/aws-sdk-go/aws/credentials"
"github.com/aws/aws-sdk-go/internal/sdkio"
)

const (
Expand Down Expand Up @@ -142,7 +143,7 @@ const (

// DefaultBufSize limits buffer size from growing to an enormous
// amount due to a faulty process.
DefaultBufSize = 1024
DefaultBufSize = int(8 * sdkio.KibiByte)

// DefaultTimeout default limit on time a process can run.
DefaultTimeout = time.Duration(1) * time.Minute
Expand Down

0 comments on commit 646ede7

Please sign in to comment.