c# - Kendo UI 文件夹上传出错 - ERR_HTTP2_PROTOCOL_ERROR
问题描述
我正在使用 Telerik Kendo File Upload 来上传文件夹。在生产环境中,很少有用户抱怨文件夹上传问题,在上传过程中,很少有文件出错,使用控制台选项卡中的开发人员工具会记录“ERR_HTTP2_PROTOCOL_ERROR”错误作为失败文件的附件。
当我尝试时,我没有收到此错误,并且所有文件夹都已正确上传。我要求用户分享他们面临错误的文件,并且当我尝试上传成功时。当用户再次尝试上传错误的相同文件时,它今天成功了,昨天失败了,但是仍然有文件给出了相同的错误。
我浏览了一篇帖子,上面说问题可能是由于使用了 HTTP/2 而当他们切换到 HTTP/1.1 时它工作正常。我们也在使用 HTTP/2,但我们没有选择回到 HTTP/1.1。下方链接 :
https://www.telerik.com/forums/problems-with-multi-file-upload-and-http-2
有什么建议么 ?
解决方案
SETTINGS_MAX_CONCURRENT_STREAMS (0x3):
Indicates the maximum number of concurrent streams that the sender will allow. This limit is directional: it applies to the number of streams that the sender permits the receiver to create. Initially, there is no limit to this value. It is recommended that this value be no smaller than 100, so as to not unnecessarily limit parallelism.
A value of 0 for SETTINGS_MAX_CONCURRENT_STREAMS SHOULD NOT be treated as special by endpoints. A zero value does prevent the creation of new streams; however, this can also happen for any limit that is exhausted with active streams. Servers SHOULD only set a zero value for short durations; if a server does not wish to accept requests, closing the connection is more appropriate.
解决方法::在注册表中的 HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\services\HTTP\Parameters 下添加“Http2MaxConcurrentClientStreams”并重新启动服务器。将此值设置为 100 或 >100
推荐阅读
- freemarker - 在freemarker中获取原始格式的序列
- html - 当 div 调整大小时 sup 标签元素向下,但我希望它只保持向上
- opengl - 在 GLSL 和 C++ 中的 OpenGL 中使用 2D PNG 的 3D 查找表
- python - 如何防止 i 递增,直到我的 Python 程序的 csv 文件中有一个适用的值?
- flutter - 颤振:无法调用提供者
.of(context) 来自定义到另一个文件中的函数。ProviderNotFoundException - javascript - 单击不同html页面上的按钮时如何添加css样式更改?
- mongodb - MongoDB $near 和 $geoNear 提供的位置与真实位置存在巨大差异
- java - 客户端需要哪些 SSL 工件用于 java 中的相互握手
- c++ - boost 中是否有 std::sample 等效项?
- android - 如何从firebase获取电话号码