git clone 出現”error: RPC failed; curl 56 GnuTLS recv error (-9): A TLS packet with unexpected length was received.”
1. 最近用git pull幾個大項目,總是出現如下錯誤:
error: RPC failed; curl 56 GnuTLS recv error (-9): A TLS packet with unexpected length was received.
fatal: The remote end hung up unexpectedly
fatal: early EOF
fatal: index-pack failed
2. 按照網上的方法,還是存在問題。
// 配置代理
git config --global http.proxy socks5://127.0.0.1:1081
git config --global https.proxy socks5://127.0.0.1:1081
// 增大快取
git config --global http.postBuffer 1048576000
3. 最終增加如下操作,解決問題。
// 把這個值改大點,完美解決,默認的是1500.
ifconfig eth0 mtu 14000