Skip to content

修复HTTP服务Windows性能异常和中文路径相关Bug #700

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
wants to merge 8 commits into from

Conversation

House-Men
Copy link
Contributor

修复Windows defaultStaticHandler性能错误
Windows版本从合并 #559 之后HTTP服务默认静态处理因编码转换严重影响服务性能。
为了方便解决Windows高性能宽字符函数编码转换,在hstring.h增加了hv::wchar_to_utf8和hv::utf8_to_wchar函数
顺便修复http服务遇到中文路径时stat不可用导致文件缓存逻辑故障 和 http服务目录索引中文乱码问题

@House-Men
Copy link
Contributor Author

6693a712a6bbd5a9d8adcffc6f99c178
Windows HTTP服务注意了 #559 合并之后的版本性能是有异常的,我也是最近压测无意中发现,分析源码排查老半天才发现原因在codecvt编码转换

@House-Men House-Men closed this Mar 26, 2025
@House-Men House-Men deleted the pr branch March 26, 2025 17:59
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant