debug: 添加 LIST 命令数据发送详细日志#23
Merged
Merged
Conversation
- Log the exact content being sent to data socket including \\r\\n - Log each line constructed by construct1LineListFile() with visible line endings - Log final \\r\\n terminator separately - Helps debug list_ftp_directory tool compatibility issues
…restore full file This reverts the previous commit which accidentally replaced the entire file. Now correctly restoring the complete DirectoryListSender.java with only the debug logging additions.
This file contains hidden or 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
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
调试目的
排查
list_ftp_directory工具与 hxftpserver 的兼容性问题。新增日志
1. 每行构造完成时
2. 发送单文件时
3. 发送目录列表时(每个文件)
4. 最终换行符
日志格式说明
0D 0A(\r\n)\r\n明确标出测试步骤
list_ftp_directory工具连接并列出目录/storage/emulated/0/Download/sisterfuture_logs/zixunwangjuan.rs.d📤表情符号找到所有发送日志预期结果
能够看到:
\r\n=0D 0A)关联 Issue: list_ftp_directory 工具返回空列表问题