beetlex-io / FastHttpApi

a lightweight and high-performance http/websocket service component in the dotnet core platform that supports TLS.
Apache License 2.0
650 stars 175 forks source link

NET6 静态资源慢 #167

Closed EVA-SS closed 2 years ago

EVA-SS commented 2 years ago

按照教程在views放置静态资源,在NET6下访问很慢,但是能读取到

beetlex-io commented 2 years ago

看情况是gzip处理上不兼容

beetlex-io commented 2 years ago

NET6 重新调整了GzipStream.Flush方法的实现,导致无法兼容 https://github.com/dotnet/runtime/pull/43834/commits/af13fb940b6521e83c1551cb21442f1b116e2b5e#diff-a076647d6d5119e4e3b482835f098318b585fc7fd9cb16116c45395721c61c3dR531-R533

beetlex-io commented 2 years ago

Fixed 2.1.0

EVA-SS commented 2 years ago

已更新测试没问题