英文:
http keep-alive timeout on server
问题
Go服务器是否有一个http保持活动的默认超时值?
如何设置自定义的保持活动超时?
服务器的ReadTimeout是否与保持活动超时有关?还是需要直接在http响应头中设置保持活动超时?
英文:
Does the Go server have an http keep-alive default timeout value?
How do you set a custom keep-alive timeout?
Is the server's ReadTimeout related to the keep-alive timeout at all? or you need to set the keep-alive timeout directly in the http response header?
答案1
得分: 1
这个问题显示他们将ReadTimeout服务器设置为每个请求而不是每个连接。这是你要设置的超时保持活动的值。
英文:
This issue shows they made the ReadTimeout server setting be per-request not per connection. This is the value you are looking to set to timeout keep-alives.
通过集体智慧和协作来改善编程学习和解决问题的方式。致力于成为全球开发者共同参与的知识库,让每个人都能够通过互相帮助和分享经验来进步。


评论