-
Notifications
You must be signed in to change notification settings - Fork 34
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[119] (fix on multiplayer-fix) Make multiplayer connection non-blocki…
…ng and improve logging - `src/app.rs`: - Add debug logging around game server setup to track connection flow - `src/game_logic/opponent.rs`: - Make wait_for_game_start non-blocking by using non-blocking socket mode - Add proper error handling and logging for socket operations - Return boolean instead of blocking/panicking - `src/handler.rs`: - Adjust log levels to use trace/debug instead of info for routine events - Clean up logging to reduce noise while keeping important info - `src/main.rs`: - Update main loop to handle non-blocking opponent connection - Remove noisy loop/tick logging - Only update game state when connection is successful - `src/server/game_server.rs`: - Change server logs to debug level - Add more detailed logging around client handling - Clean up log messages for better readability
- Loading branch information
1 parent
06c80be
commit c5de015
Showing
5 changed files
with
50 additions
and
13 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters