dongmu3269 2019-08-06 20:02
浏览 52

如何在net / http中为HTTP2配置帧大小

I am trying to set the frame size to 16 MB in HTTP/2 Server using net/http library. Default size is 16 KB.

Tried following:

http2Server = http2.Server{
MaxReadFrameSize: 2 << 24 -1,
}
_ = http2.ConfigureServer(srv, &http2Server)

But still getting the frame size as 16 KB on client side (verified by printing length of response body). Is there any other way to set the Max Frame Size on Client and Server side ?

  • 写回答

1条回答 默认 最新

  • dongzhao3040 2019-08-06 22:03
    关注

    2<<24 is ~32MB, you probably want 1<<24-1

    评论

报告相同问题?

悬赏问题

  • ¥20 win11修改中文用户名路径
  • ¥15 win2012磁盘空间不足,c盘正常,d盘无法写入
  • ¥15 用土力学知识进行土坡稳定性分析与挡土墙设计
  • ¥70 PlayWright在Java上连接CDP关联本地Chrome启动失败,貌似是Windows端口转发问题
  • ¥15 帮我写一个c++工程
  • ¥30 Eclipse官网打不开,官网首页进不去,显示无法访问此页面,求解决方法
  • ¥15 关于smbclient 库的使用
  • ¥15 微信小程序协议怎么写
  • ¥15 c语言怎么用printf(“\b \b”)与getch()实现黑框里写入与删除?
  • ¥20 怎么用dlib库的算法识别小麦病虫害