Git 正常拉取仓库代码时遇到TLS错误
Git encountered a TLS error while pulling the warehouse code normally.
————————————————————
1. 错误: RPC 失败; curl 56 GnuTLS recv error (-9): A TLS packet with unexpected length was received.
错误: RPC 失败; curl 56 GnuTLS recv error (-9): A TLS packet with unexpected length was received.
fatal: 过早的文件结束符(EOF)
fatal: fetch-pack:无效的 index-pack 输出
原因:数据太大,网络不好。
解决办法:
git config --global http.postBuffer 524288000 # httpBuffer加大
git config --global http.maxRequestBuffer 100M
git config --global core.compression 0 # 压缩配置
2. 错误:GnuTLS recv error (-110): The TLS connection was non-properly terminated.
apt-get install gnutls-bin
git config --global http.sslVerify false
git config --global http.postBuffer 1048576000