查看原文
其他

Go 1.19.1 发布了:看看要不要升级!!!

站长polaris Go语言中文网 2022-09-29
点击上方蓝色“Go语言中文网”关注,每天一起学 Go

大家好,Go 官方发布了 Go1.19.1 和 Go1.18.6,这是两个小版本,主要包括安全更新和一些 bug 修复,这次一共修复了 20 个 issue。

首先是两个安全更新:

  • net/http 包:handle server errors after sending GOAWAY

    A closing HTTP/2 server connection could hang forever waiting for a clean shutdown that was preempted by a subsequent fatal error. This failure mode could be exploited to cause a denial of service.

  • net/url 包:JoinPath does not strip relative path components in all circumstances

    JoinPath and URL.JoinPath would not remove ../ path components appended to a relative path. For example, JoinPath("https://go.dev", "../go") returned the URL https://go.dev/../go, despite the JoinPath documentation stating that ../ path elements are cleaned from the result.

其他的 issue 列表见:https://github.com/golang/go/issues?q=milestone%3AGo1.19.1+label%3ACherryPickApproved,文末点击「阅读原文」可以直达该页面。

Go语言中文网为大家准备好了最新的安装包:https://studygolang.com/dl。



推荐阅读


福利

我为大家整理了一份从入门到进阶的Go学习资料礼包,包含学习建议:入门看什么,进阶看什么。关注公众号 「polarisxu」,回复 ebook 获取;还可以回复「进群」,和数万 Gopher 交流学习。


您可能也对以下帖子感兴趣

文章有问题?点此查看未经处理的缓存