Skip to content

Minor Remote Server Fixes - #17808

Merged
SaschaCowley merged 2 commits into
nvaccess:masterfrom
nvda-art:remote-server-fix
Mar 11, 2025
Merged

Minor Remote Server Fixes#17808
SaschaCowley merged 2 commits into
nvaccess:masterfrom
nvda-art:remote-server-fix

Conversation

@ctoth

@ctoth ctoth commented Mar 9, 2025

Copy link
Copy Markdown
Contributor

Link to issue number:

Minor fixes to previous PR #17580

Summary of the issue:

This PR addresses inconsistencies in the LocalRelayServer class in the remote client server implementation. There were variable naming discrepancies and an incorrect method parameter format that needed to be fixed.

Description of user facing changes

No user-facing changes. These are purely internal code consistency fixes.

Description of development approach

The changes correct three minor issues:

  1. Updated a variable reference in documentation from PING_TIME to PING_TIME_SECONDS to match the actual variable name
  2. Fixed the reference to PING_TIME in the code to use the correct variable name PING_TIME_SECONDS
  3. Updated the listen() method call to use positional arguments instead of keyword arguments for better backward compatibility

Testing strategy:

Verified that the remote client server still functions correctly with these changes. The server successfully:

  • Establishes connections
  • Authenticates clients
  • Sends ping messages at the expected intervals
  • Actually works

Known issues with pull request:

None

ctoth added 2 commits March 7, 2025 09:45
Fix socket.listen() call by removing keyword argument. Changed from `listen(backlog=5)` to `listen(5)` as socket methods use positional-only parameters per PEP 570.
@ctoth
ctoth requested a review from a team as a code owner March 9, 2025 21:34
@ctoth
ctoth requested a review from SaschaCowley March 9, 2025 21:34
Comment thread source/remoteClient/server.py
Comment thread source/remoteClient/server.py
@SaschaCowley
SaschaCowley merged commit 40ec1f8 into nvaccess:master Mar 11, 2025
@github-actions github-actions Bot added this to the 2025.1 milestone Mar 11, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants