Skip to content

Commit

Permalink
chore: Increase APDU command response timeout to 2 minutes
Browse files Browse the repository at this point in the history
  • Loading branch information
damonto committed Jun 17, 2024
1 parent 5dbaac9 commit 50d9b06
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion internal/cloud/apdu.go
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ func (a *apdu) Transmit(command string) (string, error) {
select {
case r := <-a.receiver:
return hex.EncodeToString(r), nil
case <-time.After(1 * time.Minute): // If response is not received in 1 minute, return a timeout error.
case <-time.After(2 * time.Minute): // If response is not received in 2 minutes, return a timeout error.
slog.Debug("wait for APDU command response timeout", "conn", a.conn.Id, "command", command, "response", APDUCommunicateTimeout)
return hex.EncodeToString([]byte(APDUCommunicateTimeout)), nil
}
Expand Down

0 comments on commit 50d9b06

Please sign in to comment.