- Introduced MAX_PACKET_DATA_SIZE to limit the size of data packets.
- Enhanced packet handling to support sub-chunks for file transfers, improving efficiency and reliability.
- Updated logging to provide detailed information on received sub-chunks and their assembly.
- Refined file completion handling to ensure all sub-chunks are received before processing.
- Improved broadcast logic for file updates to handle new, modified, and removed files more effectively.
- Added a delay before requesting file lists to improve synchronization timing.
- Improved logging to indicate when a peer has no files to sync.
- Implemented timeout handling for file resource acceptance to manage transfer failures more effectively.
- Updated permission checks to provide clearer rejection messages for resources without write access.
- Added logging for received packet types to improve debugging.
- Implemented connection handling to manage peer links and permissions more effectively.
- Ensured file list requests are sent upon successful connection, with error handling for remote identity retrieval.
- Implemented conditional handling for file lists based on the presence of a sync directory.
- Improved logging to indicate when peers have files and when no syncing is needed.
- Refined the structure of the file list to include detailed file information during synchronization.
- Updated logging messages to include browser mode information when sending and receiving file lists.
- Added warnings for cases where the sync directory is not set.
- Improved file request and sync logging to provide clearer insights into the synchronization process.
- Implemented checks for incomplete file downloads, including size mismatches and chunk counts, with appropriate logging for errors and warnings.
- Changed CHUNK_SIZE from 8192 to 7000 for optimized performance.
- Modified request_file_list_from_peer to accept a browser_mode parameter for improved logging based on the request context.