问题: 在 Windows 平台下使用 go get 安装 sqlite3 驱动时报错 The remote end hung up unexpectedly ?
原因及解决方法:
原因可能有两种:
百度查了之后, 说是 Stack Overflow(缓冲区溢出了), 找到一个解决方法., 直接执行下面的命令:
Git config --global http.postBuffer 524288000
或者直接在配置文件中添加参数, 如下所示:
打开该文件, 在文件末尾添加:
- [http]
- postBuffer = 524288000
如果上面的方法不行, 还有一种可能是网络比较缓慢情况下, 连接就断开了, 解决方法是增加最低速度时间:
- Git config --global http.lowSpeedLimit 0
- Git config --global http.lowSpeedTime 999999
参考文献:
- https://www.jianshu.com/p/5f2348927504
- https://www.cnblogs.com/wangkun1993/p/8514015.html
来源: http://www.bubuko.com/infodetail-2997442.html