Skip to content

Commit 95a1d7a

Browse files
committed
feat(https): add timeout for http.Client
Signed-off-by: Yagiz Degirmenci <yagizcanilbey1903@gmail.com>
1 parent b4985fc commit 95a1d7a

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

pkg/dstp/dstp.go

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -120,9 +120,11 @@ func testHTTPS(ctx context.Context, address common.Address, t int) (common.Outpu
120120
if err != nil {
121121
return "", err
122122
}
123+
123124
client := http.Client{
124125
Timeout: time.Second * time.Duration(t),
125126
}
127+
126128
resp, err := client.Do(req)
127129
if err != nil {
128130
return "", err

0 commit comments

Comments
 (0)