Skip to content

Commit

Permalink
Avoid waiting forever on API response
Browse files Browse the repository at this point in the history
  • Loading branch information
Alberto Fanjul committed Dec 17, 2024
1 parent 130a608 commit ae2c16d
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions pkg/crc/daemonclient/client.go
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ package daemonclient
import (
"fmt"
"net/http"
"time"

networkclient "github.com/containers/gvisor-tap-vsock/pkg/client"
"github.com/crc-org/crc/v2/pkg/crc/api/client"
Expand All @@ -24,6 +25,7 @@ func New() *Client {
Transport: transport(),
}, "http://unix/network"),
APIClient: client.New(&http.Client{
Timeout: 30 * time.Second,
Transport: transport(),
}, "http://unix/api"),
SSEClient: client.NewSSEClient(transport()),
Expand Down

0 comments on commit ae2c16d

Please sign in to comment.