Skip to content

Commit

Permalink
fix: fine-tune backup file fetch timeouts for larger xmls
Browse files Browse the repository at this point in the history
  • Loading branch information
paepckehh committed Dec 17, 2024
1 parent 702fe7b commit 45e7888
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion api.go
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ import (
)

// global exported consts
const SemVer = "v0.1.49"
const SemVer = "v0.1.50"

// global var
var (
Expand Down
2 changes: 1 addition & 1 deletion transport.go
Original file line number Diff line number Diff line change
Expand Up @@ -188,7 +188,7 @@ func fetchXML(server string, config *OPNCall) (data []byte, err error) {
client := getClient(transport)

// connect
client.Timeout = time.Duration(4 * time.Second)
client.Timeout = time.Duration(20 * time.Second)
body, err := client.Do(req)
if err != nil {
displayChan <- []byte("[FETCH][FAIL:TLS-CONNECT] " + targetURL)
Expand Down

0 comments on commit 45e7888

Please sign in to comment.