Skip to content
This repository was archived by the owner on Jan 21, 2025. It is now read-only.

Release v0.0.14

Latest

Choose a tag to compare

@github-actions github-actions released this 02 Jan 23:17
9eff5b9

Changes in this Release:

  • refactor: Improve concurrency and locking strategy for server operations
  • fix: Add missing fmt and sync imports in server_test.go
  • test: Add timeout and improve concurrency handling in TestConcurrentOperations
  • fix: Add missing time import in server_test.go
  • test: Add detailed logging for concurrent channel cleanup
  • test: Refactor concurrent operations test for improved synchronization and thread safety
  • refactor: Remove extra closing brace in TestConcurrentOperations
  • refactor: Remove unused errChan in TestConcurrentOperations
  • refactor: Optimize TestConcurrentOperations by reducing clients and channels
  • 🚀 Clean up comments and streamline concurrency handling in server.go and server_test.go
  • refactor: Improve server and channel locking strategy with state snapshots
  • refactor: Remove duplicate test code block in server_test.go
  • fix: Ensure proper channel cleanup in concurrent operations test
  • fix: Add sleep to ensure channel cleanup in test
  • fix: Improve channel cleanup synchronization in handlePart method
  • Add channel management functionalities with improved concurrency 🥳🚀 - Introduced getOrCreateChannel method to safely get or create a channel without holding locks, improving performance and reducing potential bottlenecks. - Updated handleJoin method to utilize the new channel management method while adding clients to channels, enhancing concurrency and efficiency. - Refactored client feedback messaging to have cleaner error handling without interrupting the join process. - Improved concurrent operations tests to better cover different scenarios, ensuring the server manages channels and clients properly under race conditions. This included using random channels for client joining to test server limits effectively. - Added robust checks to confirm that channels are created and cleaned up as expected to maintain server state integrity after concurrent joins and parts.
  • Merge pull request #39 from 2389-research/o1-refactor