increased timeout for reading response from the Assa abloy lock server to 20 seconds
This commit is contained in:
@@ -102,7 +102,7 @@ func sendAndReceive(conn net.Conn, command []byte) (string, error) {
|
||||
return "", fmt.Errorf("failed to send command: %v", err)
|
||||
}
|
||||
|
||||
conn.SetReadDeadline(time.Now().Add(10 * time.Second))
|
||||
conn.SetReadDeadline(time.Now().Add(20 * time.Second))
|
||||
|
||||
buf := make([]byte, 128)
|
||||
reader := bufio.NewReader(conn)
|
||||
|
||||
Reference in New Issue
Block a user