Skip to content

Commit

Permalink
Merge pull request #105 from plivo/VT-3272
Browse files Browse the repository at this point in the history
Changed default HTTP client request timeout value to 5 seconds.
  • Loading branch information
huzaif-plivo authored Jul 22, 2021
2 parents 7b3148a + e033819 commit 8827dfa
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 2 deletions.
3 changes: 3 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,8 @@
# Change Log

## [7.2.1](https://github.com/plivo/plivo-go/tree/v7.2.1) (2021-07-22)
- Updated default HTTP client request timeout to 5 seconds.

## [7.2.0](https://github.com/plivo/plivo-go/tree/v7.2.0) (2021-07-14)
- Add SDK support for Voice MultiPartyCall APIs and XML.

Expand Down
2 changes: 1 addition & 1 deletion baseclient.go
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ import (
"github.com/google/go-querystring/query"
)

const sdkVersion = "7.2.0"
const sdkVersion = "7.2.1"

const lookupBaseUrl = "lookup.plivo.com"

Expand Down
2 changes: 1 addition & 1 deletion plivoclient.go
Original file line number Diff line number Diff line change
Expand Up @@ -78,7 +78,7 @@ func NewClient(authId, authToken string, options *ClientOptions) (client *Client

client.BaseUrl = baseUrl
client.httpClient = &http.Client{
Timeout: time.Minute,
Timeout : time.Second*5,
}

if options.HttpClient != nil {
Expand Down

0 comments on commit 8827dfa

Please sign in to comment.