threefoldtech / tfgrid-sdk-go

Apache License 2.0
2 stars 4 forks source link

use a custom httpclient with timeouts #892

Closed xmonader closed 7 months ago

xmonader commented 7 months ago

Describe the bug

Most of our code is using http.Get depending on the default go's http client behavior which is no timeout which can leads to

Create a custom client whenever needed and set the proper timeout based on the operation

Screenshots

image

Eslam-Nawara commented 7 months ago

Verified: now our code is using customized http client with timeout set to 10s in grid-client, monitoring-bot, tfrobot and relay cache warmer