Version 1.4.1 - Bug Fix - Connection Mismatch and Data Structure Enhancement
This release (version 1.4.1) addresses a critical bug related to connection mismatch in the server class. Additionally, it introduces an enhancement by replacing the underlying data structure to ensure reliable connection management.
Bug Fix:
- Fixed an issue where multiple connections with the same IP address would result in incorrect identification due to IP address replacement.
- The bug fix now checks each connection's IP address and UDP port to accurately identify the corresponding connection.
Enhancement:
- Replaced the previous HashMap<InetAddress, Connection> with a CopyOnWriteArrayList data structure for connection management.
- The new data structure guarantees thread-safe modifications while preserving performance for small to medium-sized connection lists.
- This enhancement ensures that multiple connections with the same IP address are maintained separately without the risk of replacement.
We recommend all users to upgrade to this version to benefit from the bug fix and improved connection management.
Please note that this release focuses solely on fixing the connection mismatch bug and enhancing the data structure. If you encounter any other issues or have suggestions for future improvements, please don't hesitate to provide feedback.
Happy coding!