diff --git a/robot/board.py b/robot/board.py index 2bfa218..7a95524 100644 --- a/robot/board.py +++ b/robot/board.py @@ -63,7 +63,7 @@ def _get_lc_error(self) -> str: path=self.socket_path, ) - def _socket_with_single_retry(self, handler): + def _socket_with_backoffs(self, handler): retryable_errors = ( socket.timeout, BrokenPipeError, @@ -113,7 +113,7 @@ def sendall(): self.socket.sendall(data) if should_retry: - return self._socket_with_single_retry(sendall) + return self._socket_with_backoffs(sendall) else: return sendall() @@ -129,7 +129,7 @@ def _receive(self, should_retry=True): """ while b'\n' not in self.data: if should_retry: - message = self._socket_with_single_retry( + message = self._socket_with_backoffs( lambda: self._recv_from_socket(4096), ) else: