Skip to content

Commit

Permalink
fix: Increase timeout
Browse files Browse the repository at this point in the history
  • Loading branch information
kroese authored Dec 10, 2023
1 parent 0e1a636 commit 880ade1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -339,7 +339,7 @@ func read(w http.ResponseWriter, r *http.Request) {
select {
case res := <-Chan:
resp = res
case <-time.After(*ApiTimeout * time.Second):
case <-time.After(time.Duration(*ApiTimeout) * time.Second):
atomic.StoreInt32(&WaitingFor, 0)
fail(w, fmt.Sprintf("Timeout while reading command %d from guest", commandID))
return
Expand Down

0 comments on commit 880ade1

Please sign in to comment.